Results 1 to 4 of 4
Hello, i am trying to find were did the java installer install everything, i've been looking for the files unsuccesfully. Is there like a grep or awk way to start ...
- 11-26-2004 #1
Finding directories or files
Hello, i am trying to find were did the java installer install everything, i've been looking for the files unsuccesfully. Is there like a grep or awk way to start looking in all directories starting from root and look for a particular string for a directory?
- 11-26-2004 #2Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
also, check the manpage for find(1)Code:updatedb && locate <filename>
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
- 11-27-2004 #3
Let's say you are looking for the "jdk" file name directory. So you move to root and type updatedb -a jdk. Is this right?
- 11-27-2004 #4Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
updatedb places every filename on your system in a database for quick searching using locate(1)..
find searches the hdd and not a database.. find is good for files that just got added and locate is good for quick searches of already existing stuff...
you should put updatedb as a nightly cron so that it is always up to date...Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr


Reply With Quote