AI Learning Hub › Learn AI › Self-Paced Courses › Terminal on Mac: Reading Commands Before You Run Them › What You Are Looking At

Module 1 ยท Beginner

What You Are Looking At

The terminal is a window, the shell is the program reading what you type, and zsh is the one your Mac uses. Telling them apart is what makes the error messages legible later.

By the end

  • Tell the terminal, the shell and a command apart
  • Say which one is answering when something goes wrong
  • Open Terminal and run one command
  • Explain why this course is written for zsh

A terminal window is a plain rectangle of text, and that is most of what makes it intimidating. There is nothing to click, nothing labeled, and no indication of what it expects. People who use it daily are not reading anything you cannot read; they have simply learned what the parts are called.

This module names three of them. It is short, and it exists so that the error messages in Module 8 make sense.

Three things, not one

The terminal
The application and the window. On a Mac it is called Terminal, and it lives in Applications under Utilities. Its job is to show text and accept typing. It does not understand any of the words you type.
The shell
A program running inside that window. It reads what you type, works out what you meant, and starts whatever program the line names. When a line is malformed, the shell is usually the one complaining.
zsh
The particular shell your Mac uses. Apple’s documentation states it plainly: “The default shell is zsh.” Everything in this course assumes it.

The fourth thing is the command itself — usually a separate program sitting somewhere on your disk, which the shell finds and runs on your behalf. ls is a real file at /bin/ls. You are not talking to the terminal when you type it; you are asking the shell to go and start it.

A Terminal window. On the first line, the prompt reads terminal-practice followed by a percent sign, then the typed command pwd. The next line shows the folder path it printed. Below that, the prompt appears again with the command ls, and the line after lists five items: README.md, archive, cases, notes and output. A final empty prompt waits at the bottom.
One exchange, twice over: a prompt, something typed, what came back, and a new prompt waiting. Observed on macOS 26.6 with zsh 5.9, October 2026. The prompt has been simplified for these screenshots; yours will usually show your account and computer name.

That repeating shape is the whole interaction model. The shell shows a prompt to say it is ready, you type a line, it runs, output appears, and a new prompt arrives. Nothing happens while the prompt is sitting there waiting.

Why this course says zsh

Older Macs used a different shell called bash, and a great deal of writing on the internet assumes it. Your Mac still has a copy of bash, but it is not what Terminal starts, and the version Apple ships is old enough that examples written for modern bash sometimes fail in it.

This matters in one practical way. When a command copied from a web page behaves oddly, the shell is a reasonable suspect. Module 6 and Module 8 both contain cases where the thing that failed was zsh rather than the command.

You can confirm what your own Mac is running in one command:

Try it

echo $SHELL

If it answers /bin/zsh, this course describes your machine. If it answers /bin/bash, which can happen on an account carried forward from an older version of macOS, most of what follows still applies, but a few of the error messages will read differently. This course does not ask you to change it either way.

The one thing a terminal does not have

No undo.

That is worth sitting with for a moment, because it shapes everything that follows. A graphical application can usually offer a way back: the Finder puts deleted files in the Trash, a document keeps an edit history, a dialog asks whether you are sure. The commands in this course mostly do not. They do what the line says, immediately and completely, and the moment to catch a mistake is before you press Return rather than after.

Which is why the course is organized around reading rather than memorizing, and why nervousness is the wrong response to it. A habit of looking at the line first does the work that nervousness only pretends to.

Exercise: open it and run one thing

Open Terminal. It is in your Applications folder, inside Utilities, and Spotlight will find it if you search for “Terminal”.

Type this and press Return.

Try it

date

Then answer three questions in your own words.

  1. Which of the three — terminal, shell, or command — printed the date?
  2. Which one drew the prompt that appeared afterward?
  3. Which one would complain if you typed dtae instead?
Check your answers

The command printed the date. date is a program; the shell found it and ran it, and its output went to the window.

The shell drew the prompt. The prompt is the shell saying it has finished the last thing and is ready for the next.

The shell would complain. It is the part that goes looking for a program by that name, so it is the part that can report not finding one. Module 8 shows exactly what that looks like, and the message has the shell’s name in front of it.

If you have taken VS Code: Files, Changes, and AI Agents, the terminal inside that editor is the same shell running on the same files. Nothing in this course is specific to one window or the other.