Home > bash > Update the database of the command ‘locate’

Update the database of the command ‘locate’

Here is how to update manually the database of locate:

sudo /usr/bin/updatedb

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.

Advertisements
Categories: bash Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: