Department 02 ยท The Workshop
Terminal Basics Every Mac User Can Learn
A gentle first hour in the Mac Terminal: moving around, looking at files, the commands that are safe, and the ones to respect.

On this page
The Terminal is the one application on a Mac that still intimidates new users, a black window where things happen by typed command instead of clicked button. The fear is misplaced, or at least misaddressed: the window is simply a door into the Unix system underneath macOS, and the first hour with it can be spent entirely on commands that look without touching. This guide is that first hour, written for a reader who has never opened the app, covering what the Terminal is, the handful of commands worth learning first, and the one command that deserves genuine respect.
What the Terminal actually is
Underneath its desktop, macOS is a Unix system, the direct descendant of an operating system lineage older than the Mac itself. When the Mac was rebuilt on that foundation at the turn of the century, the command line came with it, and it has shipped in every version since, in the Utilities folder, waiting. The Terminal application is a window onto that underlying system: it runs a shell, a program that reads typed commands and executes them, and the shell on a modern Mac is zsh. Nothing about opening the Terminal changes the machine, and nothing about typing a command commits it until the return key is pressed. The window looks sparse because it has no opinions, which is precisely what makes it useful: the same commands work on any Mac, in any directory, with no interface to update or redesign between them.
The five commands that open the door
Five commands cover the whole first session, and all five are strictly observational. pwd, print working directory, answers the question where am I, because the shell always sits in one folder of the machine at a time. ls lists the contents of that folder, and gains a directory's worth of clarity with options: ls -l shows sizes, dates and permissions, one file per line, and ls -lah adds human readable sizes and the hidden files whose names begin with a dot. cd, change directory, moves the shell elsewhere, cd Documents to step into a folder by name, cd .. to step up one level, cd alone to return home. open is the bridge back to the desktop world: open . opens the current folder in a Finder window, and open file.pdf hands a file to the application that would own it if double clicked. And man, short for manual, documents every other command: man ls explains ls, and the habit of reading the manual page before using an unfamiliar command is the single best safety feature the environment has. A well paced reference of the standard commands, kept current for macOS, is published at ss64's macOS command directory.
Looking without touching
The next handful extends the looking. cat prints a file to the window, suited to short files; less pages through long ones with the arrow keys, and quits with q. head shows the first lines, invaluable for peeking at a log without loading a season of it. file identifies what a file really is regardless of its name, and du -sh reports how much space a folder occupies, the beginning of most disk investigations. df -h shows how full each volume stands. None of these commands alters anything; a session built only from them is as safe as reading. The day something needs changing, the commands exist, mv to move, cp to copy, rm to remove, but they belong to the second week, and rm deserves its own sentence: it does not use a wastebasket, and what it removes does not come back. The convention of learning to look first is not caution for its own sake; it is how the environment's own practitioners have always begun.
The one command that deserves respect
sudo, superuser do, elevates a command to run with the authority of the system's administrator account, and it is the boundary of the sensible first hour. Some tasks genuinely require it, installing software in system locations, changing ownership of files, running maintenance the system protects, and the shell asks for the login password before granting it. The discipline around sudo is threefold. Understand the command underneath before elevating it, because sudo multiplies whatever the command would have done. Prefer instructions that explain why sudo appears, and distrust any that sprinkle it as ritual. And watch the prompt: once a command has run with sudo, a short window opens in which further sudo commands need no password, so a pasted sequence can execute elevated steps without any further confirmation. An old administrator's line puts it exactly: with great power comes great responsibility, and the power here is real, a mistyped path with sudo can remove the operating system's own files.
Why this window still matters
It would be fair to ask why a magazine aimed at ordinary Mac users spends a guide on a command line at all. The answer is that several everyday problems answer better there than anywhere else. The investigation of a slow machine begins with measurements, and the slow Mac checklist leans on commands exactly like these to see what consumes the disk and the processor. The verification of a backup, listing what a restore disk actually contains, is a one line ls in a place the Finder hides, a step in the backup rehearsal. Automation on a Mac keeps a shell at its core, as the automation guide shows, and the scheduler story in the MacAT retrospective ends in the same room: launchd jobs are declared in text files and inspected from this window. The Terminal is not a rite of passage for its own sake; it is where the machine keeps its honest answers.
A practising method that cannot go wrong
Practise in a sandbox: make a folder of copied, unimportant files, open the Terminal there, and run the five commands until the mental map forms, where am I, what is here, how do I move, how do I see this in Finder, how do I learn more. Use the arrow keys to revisit earlier commands, and the tab key to complete file names, which the shell offers partly to prevent typos. Set a personal rule for a month, look, do not touch, and let the confidence build on evidence. Readers who enjoy the history will find the connection is older than it looks: the publisher who once occupied this domain shipped a freeware tool called UNIX Console, built to make this same world approachable for Mac users of the late nineties, a small fact of the shareware record that shows how long the Mac has been shaking hands with Unix.