This applies to Slackware, but I'll bet other distributions are similar.
The
locate command actually runs a program called
slocate. You use this program to locate files quickly. One way to configure it properly (as it is in Slackware) is to create a
cron job which runs
slocate in the wee hours of the morning with a special option to update the database.
For more information:
Code:
man 1 slocate
man 1 updatedb
man 1 crontab
Hope this helps.