# How to Kill a Process on Mac

URL: https://www.raycast.com/resources/how-to-kill-a-process-on-mac
Published: 2026-11-16
Updated: 2026-11-16
Description: 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](https://www.raycast.com/rolandleth/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 a process with Raycast | The quickest way

### [Kill Process: find and kill the process eating your CPU](https://www.raycast.com/rolandleth/kill-process)

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 Process lists everything that's running, heaviest first.](https://www.raycast.com/uploads/how-to-kill-a-process-on-mac/how-to-kill-a-process-on-mac.png)

- **Kill**: press Enter to kill the selected process.
- **Force Kill**: kill it with admin rights, for processes that belong to the system or another user.
- **Kill All** (`⌥` `↵`): kill every process with the same name, like all your stray `node` processes.
- **Restart** (`⌥` `⌘` `R`): kill an app and open it again, handy when something is stuck but you still need it.
- **Copy Path**: copy the executable's path, to find out what that mystery process actually is.

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.

> Pro tip: give Kill Process a [hotkey](https://manual.raycast.com/command-aliases-and-hotkeys) or an alias like `kp` in Raycast's settings. Next time an app hangs, you're two keystrokes away from killing it.

**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

```bash
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](https://manual.raycast.com/ai/ai-extensions), 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](https://manual.raycast.com/action-panel) with ⌘ K and pick **Force Quit Application**. The same panel has [Quit, Restart and Hide](https://manual.raycast.com/applications) too.

## Force quit an app | Built in: Force Quit window

For a frozen app, this is the classic.

1. Press `⌥` `⌘` `Esc`, or choose **Apple menu → Force Quit**.
2. Select the app. Apps that have stopped responding say "(not responding)" next to their name.
3. Click **Force Quit**, then confirm.

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.

## Use Activity Monitor | Built in: Applications → Utilities

Activity Monitor shows every process, so it's the tool to use when you don't know what's slowing your Mac down.

1. Open **Activity Monitor** from **Applications → Utilities**, or search for it in Raycast.
2. Click the **CPU** tab and the **% CPU** column to sort by usage, or use the **Memory** tab. Type a name in the search field to filter.
3. Select the process and click the **Stop** button (the X in the toolbar).
4. Click **Quit**. If the process doesn't respond, click **Force Quit**.

**Quit** asks the process to close cleanly. **Force Quit** stops it right away, so anything unsaved in it is gone.

## Use kill, killall and pkill | Built in: Terminal

Terminal is the most powerful option, and the one that works when everything else is frozen except your shell.

1. Open **Terminal** from **Applications → Utilities**.
2. Find the process ID: `pgrep -l node` lists matching processes with their PID.
3. Run `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.

> Pro tip: if a dev server won't let go of a port, `lsof -i :3000` shows which process holds it. Or use the [Port Manager](https://www.raycast.com/lucaschultz/port-manager) extension to find and kill it from Raycast.

## New to Raycast?

Here's a quick tour of what else it can do, in under seven minutes:

[Video: 102 Things You Can Do With Raycast 2.0](https://www.youtube.com/watch?v=G7_7F_FBqQE)

## Frequently Asked Questions

### What is the shortcut to force quit on Mac?

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.

### How do I force quit an app that won't close on Mac?

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.

### What is the difference between kill and kill -9?

`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.

### Is it safe to kill processes on Mac?

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.

### How do I see which process is slowing down my Mac?

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.
