LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-07-2003, 02:38 PM   #1
Boom
Member
 
Registered: Jan 2003
Distribution: Deadhat 8.0
Posts: 42

Rep: Reputation: 15
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
 
Old 01-07-2003, 02:46 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
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...
 
Old 01-07-2003, 08:16 PM   #3
satellite
LQ Newbie
 
Registered: Dec 2002
Location: San Francisco, CA, USA
Distribution: LFS, Splack, Redhat 6.2
Posts: 5

Rep: Reputation: 0
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.
 
Old 01-08-2003, 02:09 AM   #4
Boom
Member
 
Registered: Jan 2003
Distribution: Deadhat 8.0
Posts: 42

Original Poster
Rep: Reputation: 15
Thumbs up

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
finding space of programs TranceDude Linux - Software 5 08-27-2005 10:19 AM
Finding files with terminal joeman3429 Fedora 10 07-22-2004 09:13 PM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 12:52 PM
Need help finding installed programs! Bix Linux - Newbie 14 08-19-2003 05:40 AM
Finding installed programs? Nicksan Linux - General 6 06-26-2003 09:23 PM

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

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