LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   why locate command is not working? (https://www.linuxquestions.org/questions/linux-enterprise-47/why-locate-command-is-not-working-573144/)

sathyguy 07-29-2007 08:41 AM

why locate command is not working?
 
Friends,

when i try
$ locate response | less

Quote:

warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
what i have to do now?

thanks
sathyguy

Lenard 07-29-2007 08:48 AM

As root run: /usr/bin/updatedb

eclypse80 07-29-2007 09:32 AM

You'll probably want to enable the cron job for updatedb so that it runs on a daily basis.

Find /etc/updatedb.conf

To enable the updatedb in cron, set DAILY_UPDATE to yes


All times are GMT -5. The time now is 11:24 AM.