Legal noticePrivacy
Gaëtan Wittebolle.
UmamiContactFR
FR
← Guides
Claude Code, the guide
Chapter 22 / 22
  • 22Appendix A: the terminal for beginners

Part 7 · Appendices

Appendix A: the terminal for beginners

Chapter 22 · 5 min reading

Terminal basics in 5 minutes, and what to do when it replies "command not found".

What the terminal is

The terminal is a window where you type instructions, one per line. You hit Enter, the system runs it and replies in text. No mouse or buttons.

Claude Code runs inside it. When you type claude in a folder, the terminal handles the rest.

You don't need to become an expert. Six commands cover the essentials.

Open the terminal on Mac

  1. Press Cmd + Space (this opens Spotlight)
  2. Type Terminal
  3. Hit Enter

A black or white window opens with a blinking cursor. You're ready.

Open the terminal on Windows

  1. Press Win + X
  2. Pick Windows PowerShell or Terminal

If you don't see those options, type PowerShell in the Start menu search bar.

The 6 commands to know

CommandWhat it doesExample usage
cdChanges foldercd ~/Documents/my-project
ls (Mac) / dir (Windows)Lists the files in the current folderls shows everything in there
pwdShows where you are in the folder treepwd returns /Users/you/Documents
mkdirCreates a foldermkdir my-project
open . (Mac) / explorer . (Windows)Opens the current folder in Finder or Exploreropen . after a cd ~/Documents
clearClears the terminal windowclear to start from a blank page

The ~ is a shortcut for your home folder (e.g. /Users/your-name on Mac, C:\Users\your-name on Windows). The . means the current folder.

PATH in 2 sentences

PATH is the list of folders the system searches for programs when you type a command. When you install Claude Code, it adds its folder to PATH so you can type claude from anywhere.

If you see claude: command not found, PATH hasn't been reloaded. Close and reopen the terminal, or type source ~/.zshrc on Mac to force the reload.

3 classic errors and how to fix them

permission denied: you're trying to do something that needs admin rights. Prefix the command with sudo and type your Mac password. Example: sudo mkdir /usr/local/my-folder.

command not found: the system can't find the program. Either it isn't installed, or PATH hasn't been reloaded. Close the terminal and reopen it, or run source ~/.zshrc again (Mac).

no such file or directory: the path you typed doesn't exist. Check where you are with pwd, then what's in the current folder with ls. Tab autocomplete saves you from typos.

← Chapter 21

My complete setup