3 ms·
> And I found myself asking: Where the heck is nginx.conf? The author lists some ways but misses the standard Unix way: simply use locate https://en.m.wikipedi
by spapas82 4y ago
> And I found myself asking: Where the heck is nginx.conf?
The author lists some ways but misses the standard Unix way: simply use locate https://en.m.wikipedia.org/wiki/Locate_(Unix) https://en.m.wikipedia.org/wiki/Locate_(Unix)
Using locate maybe piped to grep is good enough for all my finding needs
- willdr 4y agoDon't you need admin to run `updatedb`? On a work machine, this is my main barrier to using plocate.
- zamubafoo 4y agoCron/systemd timer to run updatedb every N hours.
- opan 4y ago`locate` doesn't seem to be on everything, unlike `find`. Same with `adduser` vs `useradd`. Both were a rude awakening to me later on as I hadn't learned the hard/common versions.
- berkes 4y agoLocate isn't always installed by default. Too often do I ssh into some ECS, run a docker or whatever, only to find it doesn't have locate. The problem then is that even if you can quickly install it, it'll still need to reindex the whole system, which may take minutes (and can easily cause stressed servers to start trashing). If it ain't there -and it often is- getting it is a lot of hassle.