Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 deleted some files, but they seem to still exist. Can anyone please explain the output of this:

m@work:~$ locate cfx.css | xargs rm 
m@work:~$ locate cfx.css
m@work:~$ cat /var/www/wfox/
cat: /var/www/wfox/ No such file or directory
share|improve this question
up vote 4 down vote accepted

Run sudo updatedb then re-run your locate, expect you'll find it's just that locate's database is not current since you've only just deleted the files concerned.

share|improve this answer
by 'as root' I mean simply sudo updatedb – BlakJak Sep 24 '12 at 0:34

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.