Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.