On Sun, Mar 26, 2000 at 08:34:43AM -0800, Russ Johnson wrote:
-> The reason locate is so fast is that it has a database. Unfortunately, I
-> don't believe that database (by default anyway) includes the whole hard
-> drive. That's why I use find. Locate seemed to miss files that I know were
-> on the hard drive.

You can customize the terms under which the database is built. I have
never done so. For one thing, as far as I know the setup for Mandrake 6.1
does include mounted partitions, so I have yet to find a file missing from
the database.

Database building is done as apart of a cron job that runs early in the
morning, so files freshly added to the system will not show up until the
next day.

-> 
-> Also, find will use the name only, with the options I gave earlier. So the
-> command "find / -name core -print" will only list core files to the screen.

Oh, you can do a lot more than that. Run "info find". You can pass output
to filters to narrow down the files found. You can also execute on the
files found, like grep.

-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

Reply via email to