LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   finding programs in terminal? (https://www.linuxquestions.org/questions/linux-newbie-8/finding-programs-in-terminal-40616/)

Boom 01-07-2003 02:38 PM

finding programs in terminal?
 
What is the command for finding a program and all of its files/dir's in the terminal? I forgot it was something simple like "blank <programname>". Basically I installed a program but it doesnt show up anywhere on the launcher and I want to find out where its at. I really need to get a book on this stuff. Thanks:study:

d3funct 01-07-2003 02:46 PM

Well, you can do a couple of things:
you can do "which {programname}" which will tell you where the program binary lives.
or
you can do 'find "{programname}*" ' to find every occurance of the programname and any thing else that uses the programname for a prefix to itself.

ie: find "foo*" would find /usr/local/foo, /usr/local/foo/bar.ksh, ./foobar.ksh, /foo.sh, usr/lib/foo.lib.so etc...

satellite 01-07-2003 08:16 PM

I like to use the "locate" utility. You have to do a "uptatedb" first to make a database of everything on your system, then do "locate foo" or whatever. I use it more than "find /usr foo" or something like that because it looks for the "foo" in ANY file name, so you can get stuff like libfoo.so, where just using "find" won't give you that.

find, locate, and whereis are what I usually use.... I'm sure there's more.

Boom 01-08-2003 02:09 AM

Thanks!


All times are GMT -5. The time now is 03:39 PM.