Update the database of the command ‘locate’
Here is how to update manually the database of
updatedb is usually run daily by cron to update the default database but if you don’t want to wait, you can launch it manually too. For instance, once I installed a package and I wanted to figure out the path of a specific file. Of course, it was not yet in the database.