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.

⏱ 15 min

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.

Practice terminal

Practice freely: nothing here touches your computer

Type a command and press Enter. Type help to see the list.
you@mac ~ %
Missions
  1. 1Find out where you are: pwd
  2. 2See what's here: ls
  3. 3Go into the Documents folder
  4. 4Create a folder called my-projects
  5. 5Go into my-projects
  6. 6Create an index.html file
  7. 7Go back one folder with cd ..
  8. 8Read the shopping list: cat shopping-list.txt

Time-saving tips

  • Tab completes names. Type cd Doc and press Tab: the terminal completes it to Documents.
  • 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-app instead of my 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.
Task

Now on your machine

0 of 4 done

Checkpoint

Check what you learned

  1. You ran claude and it can't find your project files. What's the most likely cause?

  2. What does cd .. do?

  3. Which folder name will cause the fewest headaches in the terminal?

Finished the lesson?

Mark it complete to track your progress.