AI Learning Hub › Learn AI › Self-Paced Courses › Terminal on Mac: Reading Commands Before You Run Them › Where This Came From

Sources

Where This Came From

Everything this course asserts comes from one of three places: Apple’s Terminal User Guide, a manual page installed on macOS, or a controlled observation made in a disposable folder during development. Where a statement is an inference from one of those rather than something any of them says, this page marks it as one.

A maintained record mapping each claim to its source lives with the repository as docs/terminal-mac-course-source-log.md.

Versions and dates

Live observations were made during October 2026 on macOS 26.6.2, with zsh 5.9 and Terminal 2.15.

They were run through /bin/zsh -f — a shell that reads no personal configuration — with explicit /bin and /usr/bin paths. That matters more than it sounds. Early checks during development produced wrong answers because the development machine’s PATH resolved grep and find to third-party replacements with different behavior. Anyone verifying this material should do the same, and anyone writing a tutorial from their own terminal should know the trap exists.

Apple documentation

Apple’s guide does not define command, option or argument as terms. The three-part model in Module 3 is this course’s own, built to match the vocabulary the manual pages use rather than invented alongside it.

Manual pages

Read on the machine named above, which is also where you can read them: man ls, man rm, and so on.

Live observations

Each of these was run in a disposable copy of the practice folder, never against anything that mattered.

Behaviors observed directly, and the module each one supports
ObservedResultModule
cp and mv onto an existing fileReplaced it, no prompt4
rm on a writable fileRemoved it, no prompt, no output5
rm on a folderis a directory; rm -r removes it5
cp on a folderis a directory (not copied); cp -R copies it4
touch on an existing fileChanged its timestamp, kept its contents4
cat My Research File.txt unquotedThree errors, one per word3
The same command quoted or escapedPrinted the file3
find . -name "*.txt"Worked6
find . -name *.txt unquotedzsh: no matches found: *.txt, before find ran6
A wildcard with nothing to match, in zshno matches found, and the command does not run5
> onto a file with contentsReplaced them; >> added to the end7
&& after a command that failedThe second command did not run7
open .A Finder window opened on the current folder2
Tab after a partial pathCompleted it, escaping spaces by itself3
Pasting a multi-line block into TerminalStaged every line; one Return ran them all9

The four error messages in Module 8 and the screenshots throughout are from the same sessions.

Two statements that are inferences

That rm is not the Finder’s move-to-Trash. The rm manual page never mentions the Trash: it describes removing files, and describes no undo and no recovery step. Module 5 therefore says you should not expect to find the file in the Trash, and stops there. It does not claim recovery is impossible by any means, because that is a stronger statement than reading the manual supports.

That the moment before Return is the checkpoint. This is the course’s thesis rather than a quotation. It follows from the observations above — cp, mv, rm and > all do their work without asking — and from the absence of anything in the documentation describing a confirmation step.

What this course could not establish

A course about reading before running should say where its own evidence stops.

What was never run

No sudo command was executed at any point in making this course. The manual page was read, which is where Module 8’s description comes from. No password was typed, and no credential prompt appears in any screenshot.

Nothing destructive was ever run outside a disposable copy of the practice folder.

Screenshots

Every terminal screenshot in this course was taken in a temporary folder with a deliberately plain prompt. A standard macOS prompt shows your account name and your computer’s name, so an unaltered screenshot would carry both. Your own prompt will look different from the images, and that is expected — the commands and their output are the part to compare.

The practice folder

The download was written for this course. The case names, the opinions and the research notes are invented, and no part of it comes from a real matter. It contains no personal information and no credentials.

It is also deliberately small enough to delete and re-extract in a few seconds, which is what makes the exercises safe to get wrong.