How to Update the Locate Command Database on Mac and Linux

September 17, 2011 | By Duchateaux.

Searching for Files or Directories on Bash Shell

This Tip Tutorial shows you Simply How to Update the locate Search Database on Linux/Mac.

The Locate command is the Faster way to Find files and directory on Unix like…

The only downside is that the locate DB need to be Updated every time you make a Search if your System has been Changed after the last Update.

Here below you find the Command to manually Update the Database on Mac and GNU+Linux.

How to Update the locate Command Database on Mac and Linux - Featured
  • On a Mac open a Terminal session and execute:

    sudo /usr/libexec/locate.updatedb

  • On most Linux system you can update your database on Shell with:

    sudo updatedb

    If not Found than See your Distro Docs…
    You will need to Wait until your Updating is achieved.


QuickChic Theme • Powered by WordPress