Skip to content

Instantly share code, notes, and snippets.

@emilefraser
Created June 12, 2017 02:14
Show Gist options
  • Save emilefraser/3c1f76feca4d553198e201e92c46e17b to your computer and use it in GitHub Desktop.
Save emilefraser/3c1f76feca4d553198e201e92c46e17b to your computer and use it in GitHub Desktop.
[Mac Housekeeping Scripts] #mac #maintain #monitor
# Shutdown Your Mac, With or Without a Delay
sudo shutdown -h now # shutdown
sudo shutdown -r now # restart
sudo shutdown -r +60 # 60 min
# uptime of mac
uptime
# Install OS X Software Updates
sudo softwareupdate -l
sudo softwareupdate -ia # install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment