locate on mac 纪录

step 1: run below command for create locateDB

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

step 2: run below command for update locateDB

sudo /usr/libexec/locate.updatedb 

step 3: now , you can run locate command .

你可能感兴趣的:(locate on mac 纪录)