[Nelug] finding files
Paul Hutchinson
paulhutchinson at warpmail.net
Wed Aug 20 21:49:01 UTC 2003
On Wed, 20 Aug 2003 19:35:47 +0100
"Andrew Hatch" <andrew.hatch at bluespace.com> wrote:
>
> > There is also "locate", try "man locate" for its options, but its
> > really just a case of "locate index.html"
>
> A nice utility - just tried it. It gave errors about not finding the
> database, so (on my Debian distro) I had to
>
> # updatedb
I always use "locate -u", which does the same thing. But my cron job seems to handle that. There is also a way to update the database with only a selected directory, I think the -U switch does that.
>
> as root, which went off to build the database that 'locate' uses. After it
> had finished scanning the filesystem, I tried
>
> $ locate index.html
>
> that did indeed list all occurences of index.html. Very handy, thanks for
> pointing it out to me. Just for information, on my machine the database is
> /var/cache/locate/locatedb and is 1.6MB for a filesystem containing 2.6GB of
> files so it won't take up much space. Running updatedb as a cron job would
> be useful.
>
> -A.
Glad I was able to help,
Paul
> _______________________________________________
> Nelug mailing list
> Nelug at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/nelug
More information about the Nelug
mailing list