| Private Hosting Questions about VPS, dedicated servers and colocation. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Searcher
Surpass Staff
Joined in May 2003
Lives in Orlando
24,448 posts
Gave thanks: 935
Thanked 783 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. |
|
|
|
|
|
#5 (permalink) |
|
Third Plateau
Comfy Contributor
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
|
A whereis would only find files in a user's $PATH.
![]()
__________________
site (syberdave.net) - server (nifty) |
|
|
|