[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
[–] 3 points 1 year ago

They do. You look at it every time you see the contents of your disk. It's just organised in a tree to make path based lookups fast and locate organises its database differently to make fast basename lookups.

  • source
  • parent