A file shows in "locate" command but don't exist. Why?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World
--
Chapters
00:00 A File Shows In &Quot;Locate&Quot; Command But Don'T Exist. Why?
01:02 Answer 1 Score 4
01:19 Accepted Answer Score 23
01:50 Thank you
--
Full question
https://superuser.com/questions/387638/a...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#backtrack #locate
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World
--
Chapters
00:00 A File Shows In &Quot;Locate&Quot; Command But Don'T Exist. Why?
01:02 Answer 1 Score 4
01:19 Accepted Answer Score 23
01:50 Thank you
--
Full question
https://superuser.com/questions/387638/a...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#backtrack #locate
#avk47
ACCEPTED ANSWER
Score 23
locate
uses a database called locatedb
. It's normally updated by system cron jobs. If the DB hasn't been updated, it'll show non-existent or new files/directories. you can force an update with the updatedb
command. See this link among others.
Manpage of locate
clearly says -
locate reads one or more databases prepared by updatedb and writes
file names matching at least one of the PATTERNs to standard output,
one per line.
By default, locate does not check whether files found in database still
exist; locate can never report files created after the most recent
update of the relevant database.
ANSWER 2
Score 4
locate is based on a database which is usually updated once a day via cron.
Force an update: run updatedb
and your locate iceweasel
will return up-to-date results.