Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

1 Answer 1

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.