Update locate Database on Mac OS
Some Unix/Linux users might find it difficult to work without ‘locate’ command on Mac OS X.
Somehow Mac OS (10.5.5) doesn’t have updated database for ‘locate’. You will get following error:
`/var/db/locate.database’: No such file or directory
Here is the solution for enabling locate on Mac OS
sudo /usr/libexec/locate.updatedb
Wait for few minutes & your done.
~Ruitu