How to create locate database under MacOS?

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

Also can use the following code to update the locate database:

sudo /usr/libexec/locate.updatedb

Leave a Reply

Your email address will not be published. Required fields are marked *