LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2010, 02:58 PM   #1
spider99
LQ Newbie
 
Registered: May 2010
Posts: 19

Rep: Reputation: 0
Launching files?


I got a file from a friend that apparently works on linux, the file has no extention so how am i able to run/launch the file or any file (without any extention) in linux? I'm using CentOS.
 
Old 05-17-2010, 03:01 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
from terminal:

cd /path/to/file/

./program_name
 
Old 05-17-2010, 03:06 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Make sure you trust the source of the file, eq your friend.
What kind off file is it?
You can use
Code:
file filename
If the file is a script, you can do
Code:
chmod +x filename
Code:
./filename
However, it's not a good idea to execute files you don't know.
It can compromise your system.


BTW, could you followup your previous threads, or close them if the problem is solved.

Last edited by repo; 05-17-2010 at 03:09 PM.
 
Old 05-20-2010, 08:29 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by spider99 View Post
I got a file from a friend that apparently works on linux, the file has no extention so how am i able to run/launch the file or any file (without any extention) in linux? I'm using CentOS.
To know the filetype of the file:
Code:
file filename
 
0 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching KDM on slackware, and configuration files returnzero Linux - Desktop 1 06-11-2009 05:12 PM
Launching files (test.txt) from a terminal window varankv Linux - Desktop 5 11-14-2007 02:17 AM
Problem launching executalbe files on Slackware Patz2009 Linux - Software 3 03-23-2006 09:50 AM
Launching Files hank@$3800 Linux - General 5 06-20-2002 05:00 AM


All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration