Updating the locate database in Mac OS X

por | 28 febrero, 2009

One of my favorite commands in Unix is «locate». It’s useful to help find files through terminal – fast! After freshly installing Leopard, I realised that the database for the command had not been built.

`/var/db/locate.database': No such file or directory

No problem. To fix this simply run the command:

sudo /usr/libexec/locate.updatedb

After a few minutes the database will be created, and you can continue using terminal efficiently.