Skip to content

Instantly share code, notes, and snippets.

@acsrujan
Created January 11, 2020 04:14
Show Gist options
  • Save acsrujan/db1b2d85530b3cde060dfd9cd8ef1b09 to your computer and use it in GitHub Desktop.
Save acsrujan/db1b2d85530b3cde060dfd9cd8ef1b09 to your computer and use it in GitHub Desktop.
Quick commands

This is a constantly updated gist with quick commands I've used over the years. A collation for quick reference.

To delete a user from a mac from cli, from another admin user. Typically used when a contract/employment ends.

sudo dscl . delete /Users/<username>
sudo rm -rf /Users/<username>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment