On Sun, 28 Nov 2010, Rogan Creswick wrote:

> If you need to find things often, you're probably better served by running
> updatedb more frequently.  I often 'sudo updatedb', grab a coffee, and
> come back to run locate. (well, I do this less often than I drink coffee
> :).  For me, updatedb is a 5-10 min operation.  Find will do roughly the
> same thing, but find's results aren't as easily reusable (unless you're
> really thinking ahead, and really know find).

   One can also edit /etc/syslog.conf so that slocate runs each day. Then the
database is current (as of the night before) and locate, in my experience,
returns results much more quickly than does find becuase it's a database
lookup using an index rather than a file-by-file search across all
partitions.

Rich
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to