[ubuntu-uk] find a file

Neil Greenwood neil.greenwood.lug at gmail.com
Mon Aug 6 13:45:53 BST 2007


On 06/08/07, Jim Kissel <jlk at osml.eu> wrote:
>
> find /your/path/to/a/directory -name '*.lck' -print
>
> Find trawls the files system but appears to cache when re-run with a
> short (hours) time.  I've ever used locate.  It has a db where it
> 'locates' files.  BTY, if you are using find on directories that you
> don't "own", you may need to sudo find has the errors it produces when
> it doesn't have permission to read a directory can overwhelm the actual
> output of any search.
>

I'm posting without testing, so I may be wrong.

I wouldn't have thought that find would cache the results. It's
probably the disk cache for the file system that speeds things up.

Hwyl,
Neil.



More information about the ubuntu-uk mailing list