|
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.
|