advanced code snippet search
aleprieto on 09/02/09
1 person have marked this snippet as a favorite
osascript -e 'tell application "System Events"' -e 'shut down' -e 'end tell'
Report this snippet
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.