I am running Arch Linux and have used the "locate" command quite often to find files. I noticed today, however, that it is bringing up results from where the item has been in the past, not it's current location. I have cleared the trash. I am wondering if there is a cache for locate that needs to be cleared as well. Any help would be appreciated. Thank you.

link|improve this question
You need to use the command updatedb I'm pretty sure. Try man locate.updatedb – Rob Jan 18 at 18:12
feedback

1 Answer

up vote 4 down vote accepted

The cache for locate is updated by updatedb. On most distributions, it's run by cron every day or week. After huge changes, you can run it manually, too.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.