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!