smashvasup.blogg.se

Shutdown mac from terminal
Shutdown mac from terminal









shutdown mac from terminal

This will terminate the caffeinate command and your Mac will now sleep again according to your defined preferences.Īs mentioned, the benefit of this approach is that it’s relatively quick to enable or disable, and it doesn’t mess with your sleep settings in System Preferences. Your Mac will now restart at the specified time.

#Shutdown mac from terminal password

Press Enter and then type your Mac’s password when prompted. If you want it to reboot in an hour, type +60. If you want to do it immediately, type now.

When you’re done with your presentation or whatever it was that you wanted your Mac to stay awake for, just click on Terminal to make the window active and use the keyboard shortcut Control-C. To restart your Mac, enter the following command: Sudo shutdown -r