How to Kill a Process on Mac
Force quit a frozen app or stop a runaway background process. Four ways to do it: the Force Quit window, Activity Monitor, Terminal, and the free Kill Process extension.
Force quit a frozen app or stop a runaway background process. Four ways to do it: the Force Quit window, Activity Monitor, Terminal, and the free Kill Process extension.
An app freezes, the beach ball spins, and your fans sound like they're about to take off. Somewhere, a process is stuck, and you want it gone.
The short answer: to force quit a frozen app, press ⌥ ⌘ Esc, pick the app and click Force Quit. For background processes, use Activity Monitor or kill in Terminal. Or install the free Kill Process extension for Raycast and kill anything from a list sorted by CPU.
Here's how each one works, and when to reach for it.
| Method | Best for | Shows background processes | Sorts by CPU or memory |
|---|---|---|---|
| Kill Process for Raycast | Everyday use, from the keyboard | Yes | Yes |
| Force Quit window | A frozen app, fast | No, apps only | No |
| Activity Monitor | Finding what's slowing your Mac down | Yes | Yes |
Terminal: kill, killall, pkill | Scripts, stubborn processes | Yes | With top or ps |
Kill Process is one of the most popular extensions in the Raycast Store, with more than 780,000 installs. It lists every running process with its CPU and memory use, sorted with the heaviest at the top. It's the fastest way we know from "why is my Mac so slow" to "fixed".
Open Raycast, type Kill Process and press Enter:

⌥ ↵): kill every process with the same name, like all your stray node processes.⌥ ⌘ R): kill an app and open it again, handy when something is stuck but you still need it.Use the dropdown in the search bar to sort by CPU Usage or Memory Usage. The extension remembers your choice. The list refreshes every 3 seconds, and you can change that, or turn it off, in the extension's preferences.
Apps are grouped by default. Chrome, Slack and other apps built on Electron run dozens of helper processes, and Kill Process folds them into one row with the combined CPU and memory, plus a count like "23 processes". Kill that row and the helpers go too. Press ⇧ ⇥ to turn grouping off when you want to hunt down a single helper.
Force Kill runs sudo under the hood, and Raycast can't type a password into it. To make it work, turn on Touch ID for sudo: in Terminal, run
sudo cp -n /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
The -n leaves an existing file alone. Then open /etc/pam.d/sudo_local and remove the # before the pam_tid.so line, keeping any other lines in it. If it's not set up, the extension tells you and links to a guide.
Each kill asks for confirmation first, and the dialog lets you skip it from then on. If you'd rather never see it, turn on Never Ask for Confirmation in the preferences.
You can also just ask. In Raycast AI, type @, pick Kill Process and say “kill all node processes” or “what's using the most memory?”, and it does the rest. Kill Process works on Windows too.
For a regular app you don't even need the extension. Search for the app in Raycast, open the Action Panel with ⌘ K and pick Force Quit Application. The same panel has Quit, Restart and Hide too.
For a frozen app, this is the classic.
⌥ ⌘ Esc, or choose Apple menu → Force Quit.Two shortcuts worth knowing: press ⌥ ⇧ ⌘ Esc and hold it for a moment to force quit the frontmost app without the window, or right-click an app's icon in the Dock, hold ⌥, and choose Force Quit.
The catch: the Force Quit window only lists apps. Background processes like a runaway node server or a stuck mds_stores don't show up here.
Activity Monitor shows every process, so it's the tool to use when you don't know what's slowing your Mac down.
Quit asks the process to close cleanly. Force Quit stops it right away, so anything unsaved in it is gone.
Terminal is the most powerful option, and the one that works when everything else is frozen except your shell.
pgrep -l node lists matching processes with their PID.kill 4821 (with your PID). If it's still there, run kill -9 4821.Useful commands:
kill <PID>: sends SIGTERM, which politely asks the process to quit and lets it clean up.kill -9 <PID>: sends SIGKILL, which can't be ignored. Use it when kill didn't work.killall Safari: kills every process with that exact name. It's case sensitive, so killall safari won't match.pkill -f "vite": kills processes whose full command line matches, useful for scripts started with node or python.sudo kill -9 <PID>: for processes owned by root or another user.Here's a quick tour of what else it can do, in under seven minutes:
Press ⌥ ⌘ Esc to open the Force Quit Applications window, select the app and click Force Quit. Holding ⌥ ⇧ ⌘ Esc for a moment force quits the frontmost app without the window.
Open Activity Monitor, select the app, click the Stop button and choose Force Quit. If that fails, find its PID with pgrep in Terminal and run kill -9 followed by the PID.
kill sends SIGTERM, which asks the process to quit and lets it clean up first. kill -9 sends SIGKILL, which stops it immediately and can't be ignored, so any unsaved work is lost.
Killing your own apps and tools is safe, apart from losing unsaved work. Be careful with system processes like WindowServer or loginwindow: killing them logs you out or restarts parts of macOS.
Open Activity Monitor and sort the CPU tab by % CPU, or the Memory tab by Memory. The Kill Process extension for Raycast shows the same list, sorted by CPU or memory, and lets you kill from it.
More guides
Find out what's slowing your Mac down. Check CPU and memory usage with Activity Monitor, a few Terminal commands, or the free System Monitor extension for Raycast.
Connect your AirPods, headphones, keyboard or mouse without digging through menus. Three ways to do it on a Mac: Control Center, System Settings, and the free Toothpick extension for Raycast.
Grab text from screenshots, images, videos and apps that won't let you select it. Three ways to do it: Live Text in Preview and Photos, the screenshot thumbnail, and the free ScreenOCR extension.
When an app freezes, press ⌥ ⌘ Esc to force quit it. Here's every way to quit and force quit apps on a Mac, from the keyboard, the Dock, Activity Monitor, Terminal and Raycast.
