locate command for OSX

Locate is a great unix/linux util that you can use for fast file searching.

enable locate (search command database) this takes 10 minutes the first ime. But it is a background process.

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Updatedb (search db)

sudo /usr/libexec/locate.updatedb

find a specific file

locate file

Author: Thomas Faddegon

Do you like my posts and want to do something back? You can buy me a beer :)