Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking at a file in my current directory (I'm root) called jungledisk..... When I do a locate *jungle*.* or *jungle* it produces no results.... what am I missing?

share|improve this question
Are you sure the locate database is getting updated in a timely fashion? Maybe it's configured to update weekly and the files simply aren't in the database yet? – larsks Dec 10 '10 at 20:28
up vote 4 down vote accepted

make sure you run



share|improve this answer
Yep, that's it, thanks – Webnet Dec 10 '10 at 20:29
When that doesn't fix the problem, what else to try? – Brian Z Jul 31 '14 at 23:36

locate searches a database constructed by updatedb. you may need to rerun this command (or better yet, automate its running)

share|improve this answer

locate depends on a list filename database which is updated by the updatedb command. The database only reflects the filesystem at the time updatedb was run, so new files won't be found, and removed files will be.

You might want to add it to root's crontab. The entry below will run it at midnight, every night:

[root@localhost]$ crontab -e
0 0 * * * /usr/bin/updatedb
share|improve this answer
Depending upon the distribution, this command might also get it to run automatically, once per day: ln -s /usr/bin/updatedb /etc/cron.daily/updatedb although most distributions would automatically put an entry in there. – zerolagtime Dec 11 '10 at 18:28

Your Answer


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.