Use launchctl to execute an application
ExecutionPersistencemacOS
A oneliner that will load a plist as a LaunchAgent or LaunchDaemon, achieving persistence on a target machine. This command requires root privileges.
ORCHARD · Tool
A oneliner that will load a plist as a LaunchAgent or LaunchDaemon, achieving persistence on a target machine. This command requires root privileges.
sudo launchctl load /Library/LaunchAgent/com.apple.installerCreation of a persistent launch agent called with $HOME/Library/LaunchAgents/com.apple.updates.plist
launchctl load -w ~/Library/LaunchAgents/com.apple.updates.plistType to search the catalog. ↑↓ move, ↵ open, Esc close.