Command To Restart Mac

These key combinations apply only to Mac computers with an Intel processor, not Mac computers with Apple silicon.

  1. Force Restart Mac
  2. Restart Computer Command
  3. Reboot Mac
  4. Reboot Imac In Recovery Mode
  5. Linux Command To Restart Machine
  6. Terminal Command To Restart Mac Remotely

Jan 11, 2021 Control–Command–Power button:. Force your Mac to restart, without prompting to save any open and unsaved documents. Control–Command–Media Eject: Quit all apps, then restart your Mac. If any open documents have unsaved changes, you will be asked whether you want to save them. This informs all users that the machine is going to be shutdown and tells all apps to close files etc. The command takes a parameter -h, -r or -s to shut down, restart or sleep the Mac. The command has to be run as root so you need to use sudo. To reboot the machine immediately. Oct 28, 2014 Another approach you can use for restarting your Mac is to use the Terminal, where there are several commands available performing these actions: sudo shutdown -r now This command will perform a restart on your Mac immediately. Restarting while using Keyboard Command: How to restart MacBook. Press the “Ctrl” key and the eject button simultaneously available on the top of the Mac keyboard. Select “Restart” from the pop-up window appeared after the command. Force restarting MacBook with Keyboard Command: How to restart. You can also press Ctrl+Eject (or press the power button) to bring up the power management menu and select whether you want to reboot, shut down, sleep, or do nothing. Before you use any of these.

To use any of these key combinations, press and hold the keys immediately after pressing the power button to turn on your Mac, or after your Mac begins to restart. Keep holding until the described behavior occurs.

  • Command (⌘)-R: Start up from the built-in macOS Recovery system. Or use Option-Command-R or Shift-Option-Command-R to start up from macOS Recovery over the Internet. macOS Recovery installs different versions of macOS, depending on the key combination you use while starting up. If your Mac is using a firmware password, you're prompted to enter the password.
  • Option (⌥) or Alt: Start up to Startup Manager, which allows you to choose other available startup disks or volumes. If your Mac is using a firmware password, you're prompted to enter the password.
  • Option-Command-P-R:Reset NVRAM or PRAM. If your Mac is using a firmware password, it ignores this key combination or starts up from macOS Recovery.
  • Shift (⇧): Start up in safe mode. Disabled when using a firmware password.
  • D: Start up to the Apple Diagnostics utility. Or use Option-Dto start up to this utility over the Internet. Disabled when using a firmware password.
  • N: Start up from a NetBoot server, if your Mac supports network startup volumes. To use the default boot image on the server, hold down Option-N instead. Disabled when using a firmware password.
  • Command-S: Start up in single-user mode. Disabled in macOS Mojave or later, or when using a firmware password.
  • T: Start up in target disk mode. Disabled when using a firmware password.
  • Command-V: Start up in verbose mode. Disabled when using a firmware password.
  • Eject (⏏) or F12 or mouse button or trackpad button: Eject removable media, such as an optical disc. Disabled when using a firmware password.

If a key combination doesn't work

If a key combination doesn't work at startup, one of these solutions might help:

Force Restart Mac

  • Press and hold all keys in the combination together, not one at a time.
  • Shut down your Mac. Then press the power button to turn on your Mac. Then press and hold the keys as your Mac starts up.
  • Wait a few seconds before pressing the keys, to give your Mac more time to recognize the keyboard as it starts up. Some keyboards have a light that flashes briefly at startup, indicating that the keyboard is recognized and ready for use.
  • If you're using a wireless keyboard, plug it into your Mac, if possible. Or use your built-in keyboard or a wired keyboard. If you're using a keyboard made for a PC, such as a keyboard with a Windows logo, try a keyboard made for Mac.
  • If you're using Boot Camp to start up from Microsoft Windows, set Startup Disk preferences to start up from macOS instead. Then shut down or restart and try again.

Remember that some key combinations are disabled when your Mac is using a firmware password.

Learn more

  • Keyboard shortcuts that you can use after your Mac has started up.

We all know that when you want to start up your Mac, you just press the power button and when you want to restart, you visit the Apple menu and choose Restart from there. But did you know there are several other Mac boot commands? These useful combinations help start up the Mac properly and fix system errors. We’ll explain more below.

Why are there different Mac boot options?

The simple answer is: to allow you to troubleshoot problems. If your Mac won’t start up in regular boot mode, or if it starts up but behaves erratically, you need to be able to diagnose the problem and fix it.

Different boot modes allow you to, for example, start your Mac with only the bare minimum of extensions loaded, so you can figure out if they are at the root of the problem. Or you can boot into Recovery Mode and run Disk Utilities to repair your disk, or, at worst, reinstall macOS.

Most of the boot options below are designed to help you diagnose and fix problems with your Mac. CleanMyMac X can also do that, as well as many other things. Its Maintenance module has tools to repair your boot disk, repair permissions, free up memory, and free up RAM. Here’s how to use it.

- Download the free version of CleanMyMac X.

- Install and launch the app.

- Choose Maintenance in the sidebar.

- Read the guidance and if you want to run the tool, check the box next to it and press Run.

And you’re done! CleanMyMac X really saves your time eliminating errors and problems you’d waste hours trying to fix manually.

What are the available Mac boot keys and options?

Here is a list of the different Mac startup keys and boot commands:

  • macOS Recovery
  • Startup Manager
  • Reset NVRAM
  • Safe Mode
  • Apple Diagnostics
  • Single-user Mode
  • Target Disk Mode

Restart Computer Command

How to access Mac boot modes and what they do:

macOS Recovery

macOS Recovery mode is used to install and reinstall macOS operating system.

  1. Hold down Command-R while starting your Mac to access the built-in recovery tools, including Disk Utility. This option allows you to reinstall the latest version of macOS that was installed on your Mac.
  2. To install the latest version of macOS that is compatible with your Mac, hold down Option-Command-R instead.
  3. If you want to reinstall the version of macOS that came with your Mac or the nearest one that’s still available, hold down Shift-Option-Command-R.

Startup Manager

The Startup Manager allows you to choose which bootable volume to start up from if you have more than one connected to your Mac. You can also use this method to startup up from a Time Machine backup if it’s connected to your Mac.

  1. Hold down the Option (Alt) key while you start up your Mac.
  2. Choose the volume you want to boot from by clicking on it when the options appear on screen.
  3. Press Return.


If your Mac is having problems with sound volume, display resolution, or time zones, resetting the NVRAM can help.

Reboot Mac

  1. Shutdown your Mac then press the power button while holding Command-Option-P-R.
  2. Wait 20 seconds and release the keys or, if your Mac plays a startup chime, release the keys after the second chime. If your Mac has a T2 security chip, you can release the keys after the Apple logo appears and disappears on screen for the second time.

For more information, here is a video about SMC, PRAM & NVRAM reset.

Safe Mode

Reboot Imac In Recovery Mode

Safe Mode is a diagnostics tool that allows you to determine whether problems you’re having on your Mac are being caused by software that loads when it starts up.

When you start up in Safe Mode, login items, system extensions not needed by the OS, and third-party fonts are not loaded. System caches are deleted, and the macOS runs a check of your startup disk.

  1. Start or restart your Mac while holding the Shift key.
  2. Release Shift when you see the login window.
  3. You may have to log in twice, and should see “Safe Boot” in the top right corner of the login window.
Command to restart macbook

Apple Diagnostics

When you’ve ruled out all possible software errors and come to the conclusion that you have a hardware fault, Apple Diagnostics can help determine which piece of hardware is causing the problem.

  1. Disconnect all external devices except the mouse, keyboard, display, power cable, and Ethernet cable if you use one.
  2. Shut down your Mac.
  3. Turn on your Mac and then press and hold the D key. Keep holding it until you see a window on the screen, asking you to choose a language.
  4. Apple Diagnostics will now check your Mac for problems.
  5. When it’s finished, it will report what it has found and give you options for what to do next.

Single-user Mode

Single-user Mode allows you to troubleshoot the startup process on your Mac. However, it boots your Mac into a command-line interface, so you should only use it if you know how to work with the command line.

  1. Start up or restart your Mac.
  2. Press Command-S on Mac startup.
  3. The screen will turn black and display white text. You can now run UNIX commands.

Target Disk Mode

If you want to make your Mac appear as an external volume on another Mac, you can use Target Disk Mode. You can connect the Macs using one of the following cables:

  • Thunderbolt 3
  • USB-C
  • Thunderbolt 2
  • FireWire
  1. If your Mac has not been started up, press the power button and hold down the T key. When it’s finished booting, you’ll see a Thunderbolt, FireWire, or USB symbol on the screen.
  2. If it is already started up, go to System Preferences > Startup Disk and choose the boot disk, then click Target Disk Mode. When asked to confirm, press Restart.

Linux Command To Restart Machine

Once the Mac has booted in Target Disk Mode, you can connect it to another Mac.

Terminal Command To Restart Mac Remotely

There are several different Mac boot options you can access by holding down different combinations of keys. Each has a different function, usually to help you fix problems with your Mac. Follow the instructions above to use the different modes. If you’re looking for a quick fix, download CleanMyMac X to help you resolve issues with your Mac.