View Single Post
Old August 26th, 2004, 8:25 PM   #1 (permalink)
Kayla
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
Find a file fast!

A server full of files. Not sure where the one you need is? You need locate.

locate name
finds any files on the server that contain name in them. This is very quick. The reason is that there is a special database of all filenames on the server that the locate command uses.

If you ever get a warning that locate's db hasn't been updated or if you just made a lot of changes and you want the locate db to reflect the changes, type:

updatedb

and then wait... this command can take anywhere from a few seconds to 15-20 minutes depending on the speed of your server and the number of files.
Kayla is offline   Reply With Quote