Mac Usage Tips

来源:互联网 发布:新浪ip反查域名 编辑:程序博客网 时间:2024/06/07 00:41

1. locate

 - to enable it: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

 - to update it:  sudo /usr/libexec/locate.updatedb

 - database file:  /var/db/locate.database

 - database is supposed to update weekly at 3:15 AM on Saturdays. (http://hints.macworld.com/article.php?story=20111007011922833)

 - it seems locate is actually using 'find' to build the database (http://osxdaily.com/2011/11/02/enable-and-use-the-locate-command-in-the-mac-os-x-terminal/)

 - better alternative on Mac: mdfind (database for Spotlight)

 - /System/Library/LaunchDaemons/ as com.apple.locate.plist and was supposed to launch at 3:15 AM on Saturdays

原创粉丝点击