View Full Version : [ubuntu] Bash - updatedb command; is it on auto-pilot?

July 8th, 2008, 03:46 PM
in the book linux in a nutshell, in linux commands under "locate," it says to update your database with the updatedb command. However in man it says that it is 'usually' done automatically once per day by cron. How do I make sure?

July 8th, 2008, 03:54 PM
If you look under /etc/cron.daily, you can see the script called mlocate, this is the script that updates your slocate(actually mlocate) database in ubuntu.

July 8th, 2008, 04:52 PM
It's done once per day automatically, but if you have recently added new files or installed something it wouldn't be in the database so you'd need to run "updatedb" manually before locate can find it.