Persistence

launchctl

Interact with LaunchAgents and LaunchDaemons.

defaults

Read, write, and delete user preference values.

ditto

Copy files and directories while preserving file attributes and permissions.

dscl

Interact with Directory Services.

SetFile

Set attributes of files and directories.