Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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