LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2006, 12:56 PM   #1
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Rep: Reputation: 15
Extension for executable file


What is the extension for an executable file in Linux? Its because I want to find an executable program, but don't know which folder to look for. Is it the same as in Windows .exe?
In which directory are all of the executable file reside?
 
Old 05-29-2006, 01:07 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
any file can be executable or not depending on its permissions. the is no one extention the means it is executable.

there is no one set directory where they all live
 
Old 05-29-2006, 01:10 PM   #3
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Original Poster
Rep: Reputation: 15
So how can I know a certain program is executable or not?
 
Old 05-29-2006, 01:21 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Konqueror seems to be quite good at this. Certainly beats trial and (comp destroying) error.
 
Old 05-29-2006, 01:28 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
ls -l , then have a look at the permissions assigned to it.

chmod +x filename to make it executable , chmod -x to remove

Last edited by rshaw; 05-29-2006 at 01:30 PM.
 
Old 05-29-2006, 01:35 PM   #6
Stabby McTwist
Member
 
Registered: May 2006
Distribution: Mandrake, Ubuntu, Kubuntu, SuSE
Posts: 63

Rep: Reputation: 15
Do you mean binaries?
 
Old 05-29-2006, 01:50 PM   #7
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Original Poster
Rep: Reputation: 15
Uuummmm.... what I mean is an executable programs like mplayer, totem... How can I know where does the executable program for eg. mplayer or totem reside? In which folder?
 
Old 05-29-2006, 02:10 PM   #8
Prostetnic_Jeltz
Member
 
Registered: Feb 2006
Posts: 66

Rep: Reputation: 16
try "which <filename>" in a terminal - as in "which mplayer"
 
Old 05-29-2006, 02:21 PM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Running "echo $PATH" will show you a list of directories in which there are executable files as well. The executables for MPlayer and Totem are likely to be in /usr/bin.
 
Old 05-29-2006, 02:24 PM   #10
wini_g
Member
 
Registered: Jun 2003
Distribution: SuSE 11.0
Posts: 171

Rep: Reputation: 30
or "whereis" command

EDIT : they can tend to be in "bin" folders .. well I guess for binary .. or where does "bin" come from ?

Last edited by wini_g; 05-29-2006 at 02:58 PM.
 
Old 05-29-2006, 02:34 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
executable files can be in any folder.

If you know a file name, you can find it with your GUI search function (eg "find files"), or with locate, find, etc.

When using locate, you also need to run updatedb to update the database.

for more details, look at "man find" and "man locate"
 
  


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
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
what is this file extension Arkan123 Linux - Newbie 5 01-14-2006 08:07 AM
File extension...?? jojojo Linux - Newbie 1 05-23-2005 04:42 PM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM

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

All times are GMT -5. The time now is 02:19 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
Open Source Consulting | Domain Registration