[SOLVED] I run sudo updatedb

locate is a command I've used in the past, but now, fresh installed with sudo apt get locate it doesn return anything.

locate --version returns locate (GNU findutils) 4.10.0, from 2024

or, have I forgotten something?

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago*

Btw, there's also
IFS=:; find $PATH -executable -iname "$1" -print
Speed advantages of a indexed DB don't matter much anymore with nowadays hardware.

  • source