# Macos Launchctl Quick Note > Quick Note ## Intro `Launchctl` just like linux's systemctl ## > - `~/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. > - `/System/Library/LaunchAgents` Per-user agents provided by Mac OS X. > - `/System/Library/LaunchDaemons` System-wide daemons provided by Mac OS X. ## CheetSheet ``` sudo launchctl load -w ``` ## example if launchctl file ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.example.hello</string> <key>ProgramArguments</key> <array> <string>hello</string> <string>world</string> </array> <key>KeepAlive</key> <true/> </dict> </plist> ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up