Le mercredi 31 Mars 2004 16:07, Frank.Herchet@boschrexroth.de a écrit :
- You never, ever have to launch updatedb manually. It's run automatically by Cron every day and after each reboot.
that may be right, but mostly i use locate after installing a program. to find all corresponding files i need to run updatedb afterwards! i had never noticed that updatedb is running as cron, but maybe it's right :) ... i don't know...
It's right, I promise. ;-) And because updatedb takes a lot of resources when it's run, some people complained that their computer was very slow the first minutes after boot, and they didn't know why because they didn't know what updatedb was. So most distributions removed locate/updatedb from the default installation.
- Whereis has a very specific use which has nothing to do with locate. Whereis only looks for programs, manpages and source files related to a keyword, while locate manages a complete database of all files on the system but knows nothing of their type.
yes, but with both programs you can search for files, that's what i meant!
True enough. But there are lots of file that you will never find with whereis, so it was a warning not to trust it for a generic search. Regards, -- Thibaut Cousin Web : http://www.thibaut-cousin.net