Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
/var/www/wfox/hbr.co.nz/cfx/a/c/cfx.css
/var/www/wfox/modules/gallery/cfx/a/c/cfx.css
/var/www/wfox/phoenix/fp.co.nz/cfx/a/c/cfx.css
/var/www/wfox/tmp.co.nz/cfx/a/c/cfx.css
m@work:~$ cat /var/www/wfox/hbr.co.nz/cfx/a/c/cfx.css
cat: /var/www/wfox/hbr.co.nz/cfx/a/c/cfx.css: No such file or directory
share|improve this question
add comment

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
add comment

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.