LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-09-2006, 09:34 PM   #1
Dadzilla
LQ Newbie
 
Registered: Feb 2006
Distribution: 2.6.12-1.1381_FC3
Posts: 5

Rep: Reputation: 0
How to find executables?


I've been playing with Linux on and off for several years and the most vexing problem I've found is that I am never sure where to look for executable files. Heck, I'm not even sure sometimes whether a file I've found is executable or not. There have been multiple occasions where I have installed a .tar or .rpm only to never find it again (or at least not without some significant search time.)

Is there any good search utility that can find all my executables (and differentiate "parent" programs from subroutines?) Is there any good utility which will allow me to easily construct a menu system, or add to my Fedora 3's existing gnome-based menu?

Thanks for your help!

Regards,

Dadzilla
 
Old 04-09-2006, 09:54 PM   #2
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
To see if a file is executable, you just have to see if its execute bit is set. Do an 'ls -l <file>' and if you see an x show up in the beginning of it, it's executable.
 
Old 04-09-2006, 10:00 PM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
many times when you install a program, it won't add it into the menu program. the best way to find the program is to open a terminal and type
Quote:
whereis <program name>
and that will usually result in an output of something like
Quote:
<program name> /usr/bin/<program name>
and maybe a few other lines if it has associated libraries and stuff.

to run a program, use the run command or open a terminal and type the program name, and it should run for you.

*edit
also, i believe all the executables will be included in the /usr/bin directory. if you can't find something you installed and you think it's executable...check out /usr/bin and see if it isn't hanging out in there....

Last edited by detpenguin; 04-09-2006 at 10:05 PM.
 
Old 04-09-2006, 10:07 PM   #4
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
A very slow and hackish way of listing all executables on your system is
Code:
ls / -R | file -f "-" | grep executable | less
Of course, that won't tell you where they are. You can modify the regexp in the grep part to find certain things.
Just use whereis to find where an executable is.

Last edited by sumguy231; 04-09-2006 at 10:11 PM.
 
Old 04-10-2006, 02:55 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
When looking at an idividual file, use the 'file' cmd, (man file).
To find excutables, use the find cmd with the -perm option (you'll need to specify this exactly) (man find).
 
Old 04-10-2006, 03:27 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
How's about a [TAB][TAB][TAB] look? It will show you all the files marked executable in your $PATH variable.

Cool
 
Old 04-10-2006, 03:36 PM   #7
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
Yeah, that definately beats the pants off my idea. I guess I just wanted to use pipes, since pipes are cool.
 
Old 04-10-2006, 03:46 PM   #8
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi Dadzilla,

The executables installed by rpms and tarballs usually get installed in '/bin, /usr/bin, /sbin, /usr/sbin, /usr/local/bin and /usr/local/sbin, unless you specify otherwise at thetime of installation. You can list the commands in these directories and find them.

Thanks;
 
  


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
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
How to find executables in a folder? sikandar Linux - Software 6 04-10-2006 03:52 PM
Executables dudeman41465 Linux - Software 4 10-09-2005 07:59 PM
XFCE4-Synaptic problem, can't find executables. Stimz Linux - Software 3 08-21-2005 02:50 PM
Executables q64 Linux - Newbie 3 03-29-2004 03:31 AM

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

All times are GMT -5. The time now is 01:20 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