Posted By

aleprieto on 09/02/09



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Shutdown Mac via terminal

 / Published in: AppleScript

  1. osascript -e 'tell application "System Events"' -e 'shut down' -e 'end tell'

Report this snippet  


RSS Icon Subscribe to comments
Posted By: daniels on February 10, 2015

or you can the write in the Terminal:

sudo shutdown now

The Mac will immediate shutdown, all open files will be closed. Not saved data will be lost.

In case of the word "now" can you type "-h +5", then is turn off in five minutes

You need to login to post a comment.