TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: RICHARD KETTLEWELL
date: 2017-11-22 15:26:00
subject: Re: How to write a dialog

Martin Gregorie  writes:
> On Wed, 22 Nov 2017 13:28:19 +0000, Richard Kettlewell wrote:
>> Martin Gregorie  writes:
>>> I have a cronjob set up on my Fedora systems to run updatedb every
>>> night, but I run it manually with a "sudo updatedb" command on my
>>> RPi before running 'apropos' or 'locate' (the latter is a fast file
>>> finder).
>>
>> Note that there is no need for these manual steps on Debian (or
>> Raspbian).
>
> I presume that's due to atd?

No, the packages contain cron jobs that keep things up to date.

> My RPi has been known to fail to find stuff, particularly with
> 'locate', without manually running updatedb, but that could well be
> because its not doing a lot at present, and simply hasn't been on long
> enough for atd to have kicked in and run the stuff that crond missed
> while the RPi was powered off.

The locate database is normally updated overnight. If you want to find
recently created things, ‘find’ is the right command, although if you’re
frequently creating things without knowing where they are, maybe it’s
time to think about why that is and whether it’s sensible.

Other platforms (macOS, Windows) manage essentially instant updates of
whole-system indexes, I don’t know why Linux is still stuck with batch
updates like it’s 1970 or something.

--
https://www.greenend.org.uk/rjk/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.