What is zsh (shell) on Mac?
By Junaid, maker of Taskglass · Last reviewed
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
- 1Check the Terminal window it belongs to and stop the running command with Control-C
- 2Close Terminal windows you don't need
- 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
- gitGit, the version control tool, often run in the background by code editors.
- node (Node.js)Node.js, the JavaScript runtime used by developer tools, local servers and some apps.
- python3 (Python)The Python programming language running a script, tool or app on your Mac.
- clang (and ld)The C, C++ and Objective-C compiler (clang) and the linker (ld) used during builds.
- Code Helper (Plugin)Usually runs VS Code extensions and the language tools they start, like TypeScript's server.
- Code Helper (Renderer)Draws a VS Code window or webview: the editor, panels and extension views.
Part of the Taskglass Process Library · More Developer tools processes