2010年4月23日 星期五

Updating the locate database in Mac OS X


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.

沒有留言:

張貼留言