LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2004, 09:28 PM   #1
johnyy
Member
 
Registered: Jun 2003
Posts: 92

Rep: Reputation: 15
where is my program @ ??


hello, when i in command prompt, when i type in gen-data and enter, it run's my program, but what if i try to find where this program at, are there easy way to find it instead do search, or try to search it in every path that was in my PATH variable.

thanks
 
Old 05-05-2004, 09:36 PM   #2
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
type su and press enter, then enter your root password

then type in find / -name gen-data
It may take a minute, but it will be found.
You can also try gnome-search-tool and use that, if you would rather have a GUI...
 
Old 05-05-2004, 09:55 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
"which gen-data" or "type -p gen-data" or "type -a gen-data" ...much easier than find.
 
Old 05-06-2004, 03:18 PM   #4
Matt Collier
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 80

Rep: Reputation: 15
"locate gen-data" is also better than find, assuming that the file is still where it was last time 'updatedb' was ran, which is normally cron'd for 06:13ish
 
Old 05-06-2004, 04:00 PM   #5
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
don't hate. find works too... lol

johnyy, you may want to su into root and run updatedb before any of this. it won't hurt the machine if you don't, but man updatedb to see what the purpose is.
 
Old 05-06-2004, 04:23 PM   #6
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
I like to use:

$su -
(password)
# find / -name 'filename'

I don't worry about if updatedb is current or if the thing I am looking for is in a limited pathway. Also, my computers aren't powered up at 06:13ish.

So it takes 15 seconds instead of 10. I'm ok with that.
 
Old 05-06-2004, 05:01 PM   #7
Matt Collier
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 80

Rep: Reputation: 15
i'd be pretty worried by a 10 second locate...
then again, a 15 second find is pretty amazing

matt@mercury:~$ time locate apachectl
/usr/sbin/apachectl
/usr/share/doc/apache/manual/programs/apachectl.html.en
/usr/share/doc/apache/manual/programs/apachectl.html.html
/usr/share/doc/apache/manual/programs/apachectl.html.ja.jis
/usr/share/man/man8/apachectl.8.gz

real 0m0.944s
user 0m0.760s
sys 0m0.010s

mercury:# time find / -name apachectl
/usr/sbin/apachectl

real 1m50.556s
user 0m0.550s
sys 0m1.410s

(apachectl is a random file i chose to locate, and i dropped the find after 2 minutes because i couldn't be bothered waiting)
 
  


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
sms program and database in linux web program in windows.. does not see each other.. keikun_naruchan Programming 0 07-06-2005 01:40 AM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 01:44 PM
Stop java program(threaded program..should end cleanly) rmanocha Programming 4 11-09-2004 09:36 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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