LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Launching files? (https://www.linuxquestions.org/questions/linux-newbie-8/launching-files-808393/)

spider99 05-17-2010 01:58 PM

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.

bret381 05-17-2010 02:01 PM

from terminal:

cd /path/to/file/

./program_name

repo 05-17-2010 02:06 PM

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.

cola 05-20-2010 07:29 AM

Quote:

Originally Posted by spider99 (Post 3971762)
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


All times are GMT -5. The time now is 02:55 PM.