On Saturday, September 13, 2025 05:41:26 AM Richard Owlett wrote: > but BUT *BUT* ;/ > locate NOT suitable for *MY* usage, database requires _refreshing_
Just chiming in from left field:
When I can, I prefer to use locate vs. find.
The main reason is that *I think* it (that is, updatedb) hits the disk less hard (but thinking about it now, I could be wrong). (Of course, locate does have to hit only the database, and that should be less disk intensive than find (or updatedb).)
On my machines, updatedb runs (iiuc) once a day be default. Occasionally (if I've done some recent work such that I need to find some files that I may have created today (since the last updatedb run)), I'll rerun updatedb.
Also, reruns of updatedb run so fast that I think it somehow only looks for new files (hmm, I don't know how it could do that without checking every filename on the disk, but I thought (until now) that somehow it did. :-(
The other thing is that the find syntax always confuses me, every time I use it I have to look it up :-(
Now going to read man find to try to fix that syntax in my head ;-) |