Wednesday, October 28, 2009

Enable Mac OS `locate' command

The `locate' command disabled in Mac OS by security reasons.
That is a way how enable it for MacOS 10.5.8:
$ sudo /usr/libexec/locate.updatedb
The database will be created by this. Sure, you need to have the administrator password.
Update: Within Snow Leopard version MacOS 10.6.2 such command is usable:
$ sudo launchctl load -w /System/Library/LaunchDaemons/

No comments: