Skip to content

H.2 — Terminal essentials

Status: drafted · Time: 3 min · Audience: everyone Outcome: The twelve commands and four shortcuts that get a new user through White Belt.

Printable card · Companion to W.2 — Terminal fluency. The twelve commands and four shortcuts you actually need.


CommandWhat it doesMost common use
pwdPrints the current directory path”Where am I?”
lsLists files and folders in the current directory”What is here?”
ls -laLists everything including hidden files, with sizes and dates”What is really here?”
cd <dir>Changes into a directoryNavigate down
cd ..Goes up one directory levelNavigate up
cd ~Goes to your home directoryQuick reset
mkdir <name>Creates a new directoryStart a new project folder
touch <file>Creates an empty fileQuick scratch file
cat <file>Prints a file’s contentsQuick look at a file
rm <file>Deletes a file (no undo)Clean up; double-check first
cp <src> <dst>Copies a file from src to dstDuplicate before editing
mv <src> <dst>Moves or renamesRename foo to bar: mv foo bar
ShortcutWhat it does
TabAuto-completes file or directory names. Press once for a single match; twice to see all matches.
Up arrowRecalls the previous command. Press repeatedly for older commands.
Ctrl + CCancels the currently running command. The “make it stop” key.
Ctrl + RSearches your command history. Type a few characters; the shell finds the most recent matching command.

The terminal is a conversation. You type a command; the shell responds. Unlike a graphical interface, the shell only does exactly what you ask. There is no undo for destructive commands. The four shortcuts above are how you avoid retyping things.

A new user who has the twelve commands and four shortcuts can do most of what White Belt requires. Everything else is built on top.


If the terminal prints an error you do not understand, copy the full error and ask in #ai-help. Do not retype the error from memory; the exact wording matters.

If you accidentally delete something with rm, stop typing. Some recovery is possible if you act quickly, especially through the system’s trash mechanism. Reach out in #ai-help before doing anything else.


Not a full terminal manual. The shell has hundreds of commands and many advanced features. This card covers what you actually need for White Belt.

Not OS-specific. The commands above work on macOS and Linux. Windows uses different commands; a Windows-specific card would belong here too.

Not a substitute for the chapter. W.2 covers why each command works the way it does, the deeper mental model, and the patterns that compound across the curriculum.


Remember: the twelve commands plus the four shortcuts cover everything you need to ship your first PR.

Up to: ↑ Appendix H · Companion: W.2 — Terminal fluency