LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 01: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, 02: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, 02: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, 02:21 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Konqueror seems to be quite good at this. Certainly beats trial and (comp destroying) error.
 
Old 05-29-2006, 02: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 02:30 PM.
 
Old 05-29-2006, 02: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, 02: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, 03: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, 03: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, 03: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 03:58 PM.
 
Old 05-29-2006, 03:34 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

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


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


All times are GMT -5. The time now is 04:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration