Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is zsh (shell) on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

The command-line shell that runs inside Terminal windows and scripts.

zsh is the Z shell, macOS's default command-line interpreter. Every Terminal window or tab runs one, and apps and scripts also start shells to run commands. A name starting with a dash (like -zsh) is a login shell. An idle shell uses virtually no resources; high usage comes from what's running in it.

Category
Developer tools
Made by
Open source (bundled with macOS)
Safe to quit:
With care

Shown in Activity Monitor as zsh, -zsh, bash, -bash

Why is zsh (shell) using so much CPU or memory?

  • A script or command running in the shell
  • Shell startup files (like .zshrc) doing slow work
  • Prompt plug-ins checking git status in large folders

What to do

  1. 1Check the Terminal window it belongs to and stop the running command with Control-C
  2. 2Close Terminal windows you don't need
  3. 3Simplify slow shell startup scripts or prompt themes

Safe to quit? With care.

Quitting closes that terminal session and stops whatever was running in it.

Typical CPU and memory use

Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:

  • zsh: 10 MB of memory (largest of 109 copies), running as your user account

Resident memory from ps at one moment. It changes with what you're doing.

Is it genuine? How to check

Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.

zsh

Location
/bin/zsh
Signed by
Apple (part of macOS)

Check the signature in Terminal:

codesign -dv --verbose=2 "/bin/zsh"

The genuine file prints these lines:

Identifier=com.apple.zsh
Authority=macOS Software Signing
TeamIdentifier=not set

bash

Location
/bin/bash
Signed by
Apple (part of macOS)
Started by
launchd job com.apple.xpc.uscwoap (system daemon)

Check the signature in Terminal:

codesign -dv --verbose=2 "/bin/bash"

The genuine file prints these lines:

Identifier=com.apple.bash
Authority=macOS Software Signing
TeamIdentifier=not set

To see where the running copy lives, run this in Terminal and compare the path:

ps -axo pid,user,comm | grep -F zsh

In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.

Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.

Related processes

Part of the Taskglass Process Library · More Developer tools processes

See this process live in Taskglass.

Taskglass shows what zsh (shell) is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →