10 Ways to Restart/Shutdown Your Mac

JT | 18 March, 2018 11:11 pm

Today I want to show you a few different ways you can restart or shutdown your Mac. Listed below are 10 methods you can use based on the status of your Mac. A few of the approaches for shutting down or restarting may be preferred in most situations, whereas some of the methods are better to use when your Mac becomes unresponsive.

Traditional Restart/Shutdown Options

Apple Menu

  • The most popular way to restart and shut down your Mac are in the Apple menu. This options will close each program as safely as possible, allowing you to save documents and settings, and quitting them only when they are ready. If an application can not be stopped this will halt the restart/shutdown process.

Mac Power Button

  • Hold the power button for 3-5 seconds, this will reveal a power menu panel. You can also select any of these options from the Apple Menu. This approach will execute a standard Shutdown/Restart procedure, which is also fairly gentle on running programs. Lastly, you can also hold the power button until the system powers off to perform a “Hard Shutoff“.

 

Alternate Methods Utilizing The Terminal Application

 

sudo shutdown -r now

  • This command will execute a restart on your Mac instantaneously. You can also replace the “-r” with an “-h” (shutdown) the system instead of restarting it. Lastly, you can also change the “now” to a numerical value to indicate seconds until the shutdown or restart will take place (ex: sudo shutdown -r 24).

sudo reboot

  • This command will force programs to quit instead of stopping for a busy process within an application; in order to initiate a Restart. Alongside, this option is beneficial to use if the Apple Menu is nonfunctional.

sudo halt

  • This command will force programs to quit instead of stopping for a busy process within an application; in order to initiate a Shutdown. Alongside, this option is beneficial to use if the Apple Menu is nonfunctional.

osascript -e ‘tell application “System Events” to restart’

  • This Terminal-Based Apple Script command allows you to execute the standard Restart, which can be preformed in the Apple Menu.

osascript -e ‘tell application “System Events” to shutdown’

  • This Terminal-Based Apple Script command allows you to execute the standard Shutdown, which can be preformed in the Apple Menu.

 

Rebooting with FileVault

 

sudo fdesetup authrestart

  • If you have FileVault enabled on your remote Mac, you will definitely run into an issue where the system will restart but then it will still need to be unlocked before the OS X can load. Consequently, without OS X loaded, there will be no way to interact with your system and control it. This issue can also be seen if you use Screen Sharing. Utilize the sudo command above to reboot any FileVault-enable Mac and it will resume without requiring a unlock first.

 

Scheduling Options

 

  • Scheduling options allow you to set a specific time and day to shutdown or restart your Mac. Navigate to “System Preferences -> Energy Saver -> Schedule…” to locate your Scheduled Options. This option is optimal for managing security and running schedule maintenance tasks for various items. Understand this setting could also interrupt your workflow if you forget about it.

sudo pmset repeat shutdown MTWRFSU 00:00:00

  • In order to have your Mac consistently shutdown on a specific day, you will need to use the “repeat” option for the “pmset” command. The screenshot above will have the Mac shutdown at midnight every day (note that the times in these commands are in 24-hour format).

Leave a Reply

Your email address will not be published. Required fields are marked *