According to this article, I can use this command:

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

To enable "locate" command to find files. However, recently I find this command not useful anymore and want to shutdown the background service/daemon. Does anyone have ideas about how to disable it or shutdown it? Thanks!


You can disable it like this:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locate.plist
|improve this answer|||||
  • Does that still work with SIP? – John Keates Feb 22 '18 at 1:33
  • @JohnKeates If launchctl could be used to load locate by Firegun, why would unloading it fail? – JAB Feb 22 '18 at 2:47
  • Well, if you change something in a SIP location on a pre-SIP macOS version and then upgrade, it gets locked in place – John Keates Feb 22 '18 at 8:58
  • Thanks! I'm using 10.13.3 and this command works for me. – Firegun Feb 23 '18 at 0:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .