I have found that sometime i can find files using locate but sometimes it dont find.
Which directories it find the file using locate or find
Suppose i want to find the files or directories having word denyhosts.
Whats the best way to find that
|
|
|
Locate has to be feeded every then and now to have a updated list of everything on your server. To keep it up-to-date you have to run If after you ran that command you have create or download or increased the amount of new files it won't be listed in there so With For example:
Would look for a file starting with denyhosts on every directory from To look for directories only use the
The above will look from I prefer having updatedb up-to-date i guess it is easier to find things, but that is just my personal preference, it works just like a cache so once it is updated to find things it might be even faster. |
|||||||||
|