What goes into default Debian?
What goes into default Debian?
Posted Feb 17, 2021 23:28 UTC (Wed) by clump (subscriber, #27801)In reply to: What goes into default Debian? by Sesse
Parent article: What goes into default Debian?
I like the ease of locate but switched to find years ago because find is always up to date.
Posted Feb 18, 2021 6:12 UTC (Thu)
by dowdle (subscriber, #659)
[Link]
If I've done a lot of package installs or updates... I'll often run updatedb before using locate. The updatedb action usually only takes a second or two. So making locate as up-to-date as find, is still way, way faster than find.
Yes, there are feature differences because locate only matches file/dir names whereas find has a whole slew of properties you can search for. It does NOT need to be an either or... or one is better than the other. Use both, they are both great.
Posted Feb 18, 2021 7:29 UTC (Thu)
by anton (subscriber, #25547)
[Link] (3 responses)
It's funny that some people argue that updatedb is too costly while others argue that "find /" (which costs hardly less) is fast enough.
Posted Feb 18, 2021 9:20 UTC (Thu)
by smcv (subscriber, #53363)
[Link] (2 responses)
Posted Feb 18, 2021 9:39 UTC (Thu)
by anton (subscriber, #25547)
[Link] (1 responses)
Posted Feb 18, 2021 9:44 UTC (Thu)
by Sesse (subscriber, #53779)
[Link]
What goes into default Debian?
"rlocate is an implementation of the ``locate'' command that is always up-to-date." Except that rlocate itself is not up-to-date; it was written before inotify/fanotify, so it uses its own kernel module instead. But maybe one of the current locate implementors can add an always-up-to-date feature based on fanotify.
What goes into default Debian?
What goes into default Debian?
It also depends on how you value the user's time vs. the computer's time. However, on my personal system I indeed do not run updatedb automatically, because last time I did (long ago) it would run right on system startup (i.e., every morning) and make the system sluggish.
What goes into default Debian?
What goes into default Debian?