Odd locate behavior

Little Girl littlergirl at gmail.com
Mon Sep 16 13:04:45 UTC 2024


Hey there,

Karl Auer wrote:
>Little Girl wrote:

>> Have you done sudo updatedb to update the locate database?
>
>Good call! But isn't that done on a daily basis by cron? Otherwise
>the database would be permanently out of date.

Yep:

	ls /etc/cron.daily

It should run automatically every day, but a known weakness of cron
is that if the computer isn't running at a cron job's scheduled time,
it won't fire even when the computer is later turned on. If you shut
down your computer, like I do every night, there may be cron jobs
that aren't firing. Whenever my searches fail to find what I'm
looking for, the sudo updatedb command always fixes it, so that
particular cron job is most likely set to fire on my off-time.

>But worth checking.

True. If nothing else, we don't know how long the music files were in
the ~/Music directory before the search was attempted.

-- 
Little Girl

There is no spoon.




More information about the ubuntu-users mailing list