Sub topic 2
Force quit a frozen app
This chapter assumes you know the Finder, the Apple menu and the Dock. You should also be comfortable opening Activity Monitor and Terminal. Later chapters cover Activity Monitor and Terminal in more depth, so here you only use them as ways to end an app that has stopped responding.
What "frozen" means
An app is frozen when it stops handling mouse and keyboard events. macOS shows the spinning rainbow wheel over it, or the window turns gray. The app is usually busy or stuck waiting for something, such as a slow disk, a network share or an infinite loop in its own code. The rest of the system often keeps working.
Force quit tells macOS to end that one app's process. It skips the app's normal shutdown, so unsaved changes are lost. Before you use it, wait a minute or two. Some apps are only slow, for example while they index a large library or open a big file.
Four ways to force quit
Start with the first method and move down the list only if it fails. This follows the least-disruptive-first order from the previous chapter.
| Method | Steps | When to use it |
|---|---|---|
| Keyboard | Press Option+Command+Esc, select the app, click Force Quit | The app is frozen but the Mac responds |
| Apple menu | Choose Apple menu > Force Quit, select the app, click Force Quit | Same as above, and you prefer the mouse |
| Dock | Control-click (or right-click) the app icon, hold Option, choose Force Quit | The app's windows are hidden or off screen |
| Activity Monitor | Select the process, click the stop button, choose Force Quit | The app is missing from the Force Quit window, or you want to see its CPU and memory use |
The Force Quit window marks an unresponsive app with "Not Responding" in red. In the Dock, the Option key changes the Quit item into Force Quit.
Using Activity Monitor
Open Activity Monitor from Applications > Utilities. Select the app in the CPU tab, then click the stop button (a octagon with an X) in the toolbar. Two choices appear:
- Quit asks the process to exit cleanly, like a normal Quit command.
- Force Quit ends it immediately.
Try Quit first. If the process is still listed after a minute, repeat the steps and choose Force Quit. Activity Monitor shows apps in red with "(Not Responding)" when they are hung, which makes it easy to spot the right one.
Using Terminal as a last resort
If the graphical tools fail, Terminal can send the same signals directly. Find the process ID (PID) with pgrep -x, ask the app to quit with kill, wait, then force it with kill -9.
pgrep -x Safari
kill 1234
sleep 5
kill -9 1234Replace 1234 with the number that pgrep printed. kill sends SIGTERM, which asks the process to quit. kill -9 sends SIGKILL, which the system enforces and the app cannot ignore. Use the exact name shown in Activity Monitor, because -x requires an exact match.
Common errors
- The app comes back frozen. Many apps reopen their last windows on launch. Hold Shift while you click the app's icon to skip window restoration, or hold Shift when you choose Restart to avoid reopening windows after a restart.
- The app keeps freezing. A single freeze is not a pattern. If it repeats, update the app, then reset its preferences (covered in a later chapter).
- The whole Mac is frozen. Force Quit cannot help if the pointer does not move. Hold the power button until the screen goes dark, then start up again, and later check the disk with First Aid.
- A process reappears after you kill it. System processes such as Finder and Dock are restarted automatically by macOS. This is normal.
Exercise
An app shows the spinning wheel and does not appear in the Option+Command+Esc window. Name two other ways to end it, in the order you would try them.
Show answer
First, Control-click the app's Dock icon, hold Option and choose Force Quit. If that fails, open Activity Monitor, select the process, click the stop button and choose Quit, then Force Quit if needed. Terminal (pgrep, kill, then kill -9) is the last resort.
Exercise
What is the difference between kill 1234 and kill -9 1234, and which should you run first?
Show answer
kill 1234 sends SIGTERM, which asks the process to quit and lets it clean up. kill -9 1234 sends SIGKILL, which ends the process immediately and cannot be ignored. Run kill first and use kill -9 only if the process is still running after a few seconds.