Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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)

Using locate maybe piped to grep is good enough for all my finding needs



Don't you need admin to run `updatedb`? On a work machine, this is my main barrier to using plocate.


Cron/systemd timer to run updatedb every N hours.


Locate 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.


`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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: