Apps

Terminal isn't working. What it does instead names the layer

Short answer“Terminal not working” compresses three different faults. It won't open, or bounces and closes: the app itself or its saved state. It is tested by launching Terminal without restoring its previous windows, not by editing your shell files. It opens but hangs, or sits blank with no prompt: your shell — the program that runs your commands, usually zsh — is stalling in its startup files before it can offer a prompt. It runs, but commands error or aren't found: the prompt is fine and the fault is per-command — a missing tool, a broken PATH, or a permission. Don't reinstall macOS, and don't delete your shell configuration files wholesale to test any of these; the layers separate with reads that cost nothing and destroy nothing.

Terminal is where Mac users go to fix things, so its own failure feels like the toolbox breaking. It helps to remember it is three tools in a trench coat: a window app, a shell that starts inside it, and the commands you run. Each can fail while the other two are healthy.

Naming which of the three you have is therefore the whole first step, and it is made by watching one launch carefully rather than by changing anything. This page is organised by those behaviours, in the order they occur in a launch.

Do it by hand below, or let Noah read this Mac's logs for Terminal and shell starts first (more at the end).

Terminal won't open, or closes at once

The app bounces in the Dock and stops, opens a window that vanishes, or never appears — while other apps open normally.

Then the failure is in the window layer, before any shell starts: the app's own state, including the saved windows macOS tries to restore for it. A corrupted restoration can close every new window the same way, which imitates a broken app convincingly.

Fixhold Shift while launching Terminal. Apps that support window restoration open without restoring previous windows that way, so if Terminal opens there, its restored windows were the trap: close them and let it save a clean set on quit. If Terminal does not restore windows on this Mac, Shift changes nothing and the next step is the crash report. Still closing even with Shift held is a different case. Open Console, select Crash Reports in its sidebar, and read the newest report naming Terminal after one attempt. Note it exactly. An app crashing on launch in every state, with that report, is an Apple Support conversation, not a shell one.

NoahNoah can read recent crash reports and logs for Terminal's launch attempts, which shows whether it fails at the same step each time. It cannot hold Shift for you, so the no-restore launch stays your click.

It opens, but hangs or never gives a prompt

A window opens — blank, frozen, or with text that stops — and no prompt you can type at ever arrives.

The app is fine; the shell inside it stalls while running your startup files — the .zshrc and companions that customise every new shell — before it can print a prompt. Something in that sequence is waiting: on a network drive, a dead integration, or a prompt framework polling something that no longer answers.

Fixopen Terminal → Settings → General, set Shells open with to Command, and enter /bin/zsh -f. Open a new window. A prompt arriving there — -f skips your RCS startup files such as .zshrc, though ~/.zshenv still runs — proves Terminal works and narrows the stall to those files. Set Shells open with back to the default shell afterwards. Then rename ~/.zshrc to ~/.zshrc.backup and confirm a clean prompt in a new window. In Finder the file is hidden: press Shift-Command-. in your home folder to show hidden files, then rename it there. Restore your file piece by piece across new windows to find the stalling part. Nothing is deleted; the backup is the whole file, intact.

NoahNoah can read your shell startup files and your shell's configuration, which lets it point at the section most likely to stall rather than bisecting blind. It asks for your approval before it renames or edits any of them.

The prompt works; commands error or aren't found

You get a prompt and can type, but commands return errors, “command not found”, or permission refusals.

Then both outer layers are acquitted and the fault is per-command. Command not found is the shell failing to locate the program along its PATH — the list of folders it searches. Permission errors are the file system's answer, not the shell's. These are read from the exact first error line, which names the command and often the file and line involved.

Fixrun /bin/ls ~. Working there proves the core tools are present and executable. For a named command that is not found, read the error's spelling of it first. Most not-found errors are a typo or a tool that was never installed. Then run echo $PATH to see the folders actually searched. Fix the specific item the error names; don't rebuild your whole PATH or shell files for one missing tool.

What to avoid

  • Deleting .zshrc or your shell files to test a hang. Rename to .backup instead: the test is identical, the restore is free, and your customisations survive to be bisected rather than rewritten from memory.
  • Copying a forum's .zshrc over yours. That imports someone else's machine into your prompt and destroys the comparison. Rename, confirm the clean prompt, restore in pieces.
  • Reinstalling macOS for a Terminal fault. The app, the shell, and your startup files all live above the OS layer a reinstall would rebuild identically. The Shift launch and the zsh -f test split them in minutes.
  • Running sudo against a permission error you haven't read. The first error line usually names the file and the refusal precisely. Elevating over it changes the file's ownership story without answering why it refused you.
Try Noah free

A prompt that answers.

Just tell Noah what's wrong:

Terminal is not working on my Mac.
Name my Terminal layerFirst conversation freeNew customers: 7-day free trialOnly with your OK

Already have Noah? Open it on this problem →

Frequently asked questions

Why won't Terminal open on my Mac?

Watch what it does. Bouncing and closing is the app's saved window state: hold Shift while launching to open without restoring windows. Opening without a prompt is your shell stalling in its startup files: launch /bin/zsh -f from Terminal Settings as this page describes, for a clean prompt. A working prompt with failing commands is per-command — read the first error line exactly.

What does zsh -f do, and is it safe?

It starts the shell while skipping its RCS startup files such as .zshrc (~/.zshenv still runs). Launch it via Terminal Settings > Shells open with, as this page describes. A prompt appearing there proves Terminal and the shell work and narrows the stall to those files. It changes nothing permanently; rename .zshrc to .zshrc.backup to bisect it safely.

Terminal says command not found. Is Terminal broken?

No: the prompt working acquits Terminal and the shell. The shell cannot find that program along its PATH, or it was never installed under that spelling. Test /bin/ls ~ to prove core tools work, then read the error's exact spelling and echo $PATH.

Should I delete my .zshrc if Terminal hangs?

Rename it, don't delete it: .zshrc.backup keeps every line intact for a piece-by-piece restore across new windows. Deletion buys the same test at the price of rewriting your configuration from memory.

Commands in this guide are standard, read-only macOS diagnostics unless noted; anything that changes your system is called out. When in doubt, back up first with Time Machine.