Mac OS X uses the following directories to start various services:
- /System/Library/LaunchDaemons/ - System-wide daemons provided by Mac OS X
- /System/Library/LaunchAgents/ - Per-user agents provided by Mac OS X
- ~/Library/LaunchAgents/ - Per-user agents provided by the user
- /Library/LaunchAgents/ - Per-user agents provided by the administrator
- /Library/LaunchDaemons/ - System-wide daemons provided by the administrator.
cd /System/Library/LaunchDaemons/OR
ls -l
ls -l | less
cd /System/Library/LaunchAgents/Disable Unnecessary Services
ls -l
ls -l | less
Use the launchctl command as follows:
sudo launchctl unload -w /path/to/.plist/fileIn this example, use the following to disable the Bonjour service:
sudo launchctl unload -w /System/Library/LaunchDaemons/file.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist
No comments:
Post a Comment