LinuxQuestions.org
Help answer threads with 0 replies.
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 03-28-2004, 07:06 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
linux "executables!


Can anybody tell me how to identify a llinux "executable" by its name?

In windows, executables usually end in "exe" of course ... there doesn't seem to be that convention in linux.

Is it possible to identify a linux executable merely by its name, and knowing nothing else abou tit?
 
Old 03-28-2004, 07:20 PM   #2
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
not by it's name, by it's right!

rwx-rwx-rwx
R= Read
W=Write
X= eXecute

Example :

You are in /bin :
type ls -l
You will have

rwx-rwx-rwx ... ... ... EXAMPLE
usr grp others
So EXAMPLE is executable

Enjoy...

Last edited by wiBo; 03-28-2004 at 07:21 PM.
 
Old 03-28-2004, 07:22 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Another way to find out what it's MEANT
to be (sometimes the permissions don't
actually match the purspose) is to use the
tool called
file

It will tell you whether it's an ELF executable,
some other form of executable binary (a.out,
old linux format) or a script of some sort.


Cheers,
Tink
 
Old 03-28-2004, 07:25 PM   #4
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
and they're usually green in ls color mode
 
Old 03-28-2004, 07:37 PM   #5
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Original Poster
Rep: Reputation: 32
Cool, thanks guys. That should get me started.
 
  


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 executables jaristr Programming 13 03-17-2008 03:41 PM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 08:43 PM
executables and "make" command not working blahboybang Linux - General 5 12-24-2004 08:57 PM
executables in linux naren Linux - Software 3 02-18-2004 09:44 AM
snort compile errors "C compiler cannot create executables" RKris Linux - Software 2 11-07-2003 03:08 AM


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