LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 02:01 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
from terminal:

cd /path/to/file/

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

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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 02:09 PM.
 
Old 05-20-2010, 07:29 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
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



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 04:12 PM
Launching files (test.txt) from a terminal window varankv Linux - Desktop 5 11-14-2007 01:17 AM
Problem launching executalbe files on Slackware Patz2009 Linux - Software 3 03-23-2006 08:50 AM
Launching Files hank@$3800 Linux - General 5 06-20-2002 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 PM.

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
Open Source Consulting | Domain Registration