How To Force macOS To Shut Down In Terminal

Input/Output #5 Terminal Hacks: Force macOS to Shut Down artwork.

Is your Mac refusing to shut down? Most likely an application or background process has frozen, preventing the process to close and in turn preventing macOS to shut down. This hack will show you how to use terminal to force a shut down.

Force Shut Down In Terminal

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following…

shutdown -r now

(return)


Force Shut Down (sudo) In Terminal

If the above command fails to initiate the Mac’s shut down process, place the word sudo (super user do) in front to switch to administrative root access.

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following…

sudo shutdown -r now

(return) (enter Mac password) (return)

::TIP:: if you know which application is causing the issue then: click on  > Force Quit… (on the top menu bar), select the offending application and click on the Force Quit button. Once the application has closed you should then be able to shut down.

Dates posted and updated.

Originally posted 27 April, 2025.

Other Posts