From Zero to Deploy · Module 1 · Lesson 1.2
1.2 The terminal, without fear
The five commands you need to work with Claude Code, practiced in a training terminal right on the page.
Why the terminal
Claude Code lives in the terminal. You don’t need to become an expert: with five commands you can handle every project in this course. They answer two questions: “where am I?” and “how do I get to my project folder?”.
Two ideas before the commands
1. The terminal is always “inside” a folder. That’s the current folder. When you start Claude Code, it works on the files in the current folder. That’s why getting into the right folder before running claude matters so much. The other agents you’ll meet in the next lesson, codex and copilot, work the same way.
2. Paths have shortcuts.
| Shortcut | Means |
|---|---|
~ |
Your home folder (on a Mac, /Users/your-name) |
.. |
The folder “above”, one level up |
. |
The current folder itself |
Documents/projects |
The projects folder inside Documents |
The five commands
| Command | What it does |
|---|---|
pwd |
Shows which folder you’re in |
ls |
Lists what’s in the folder |
cd folder |
Moves into a folder (cd .. goes back one) |
mkdir name |
Creates a folder |
touch name |
Creates an empty file |
Practice here
This terminal is pretend: nothing you type touches your computer. Complete the missions next to it. Mistakes are fine, that’s what it’s for.
Time-saving tips
- Tab completes names. Type
cd Docand press Tab: the terminal completes it toDocuments. - Up arrow brings back previous commands.
- Drag a folder from Finder or Explorer into the terminal: its full path gets typed for you.
- Avoid spaces in names. Use
my-appinstead ofmy app. Spaces make life harder in the terminal. - In VS Code, open the project folder and use Terminal → New Terminal: the terminal opens inside the right folder.
Mark it complete to track your progress.