Beginner12 min readBadge: Command Line Ready

Terminal basics: the command line without fear

What the terminal is, the ten commands you'll meet when building with AI, how to read errors, and the commands to never run blindly.

What the terminal is

The terminal (or command line) is a text way to tell your computer what to do. Coding agents like Claude Code, tools like npm and Git, and dev servers all run there. On a Mac it's the Terminal app, on Windows it's Windows Terminal or PowerShell, and editors like VS Code and Cursor have one built in.

Ten commands you'll meet

  • pwd shows which folder you're in (your working directory); ls lists what's in it (dir on Windows Command Prompt).
  • cd my-app moves into a folder; cd .. goes up one level.
  • mkdir new-folder makes a folder.
  • npm install downloads the packages a project needs; npm run dev starts it on localhost.
  • git status shows what changed; git add and git commit save a snapshot.
  • Ctrl+C stops a running program; the up arrow repeats your last command.

Reading what comes back

The most useful line is usually near the bottom. 'command not found' means a typo or a tool that isn't installed; 'permission denied' means you're not allowed to touch that file or folder; 'no such file or directory' means you're in the wrong folder (check with pwd). Copy the whole error, not just the last line, when you ask an AI for help.

Never run what you don't understand

Commands can delete files or install anything. Be very careful with sudo (runs as an administrator), rm -rf (deletes without asking) and anything that pipes a downloaded script straight into your shell (curl ... | sh). Don't paste commands from strangers. When a coding agent asks permission to run a command, read it first and ask it to explain if you're unsure. Keep secrets in environment files, not typed into commands.

Key terms

Terminal (command line)
A text window where you run commands like npm install.
Working directory
The folder your terminal is in right now. pwd shows it; cd changes it.
npm / package
npm is the registry of reusable JavaScript code; each reusable piece is a package.
Localhost
Your own computer acting as the server while you build, e.g. localhost:3000.
Git
Free software that tracks every change to a folder of code.
Commit
A saved snapshot of changes with a message.
Coding agent
An AI that reads, edits and runs code across a whole project.
Environment variable
A setting or secret the app reads at run time, kept outside the code.
See the full glossary

Try it

Ten minutes in the terminal

  1. Open the terminal in VS Code, Cursor or your computer.
  2. Run pwd, then ls (or dir), then cd into a folder and back out with cd ..
  3. Make a practice folder with mkdir, move into it and check where you are with pwd.
  4. Ask an AI to explain one command a coding agent ran for you, line by line.

Ask an AI tutor about this guide

Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.

Study with an AI tutor: copy this whole guide with tutoring instructions, then paste it into your AI assistant.
  • Explain it like I'm 12
  • Quiz me (5 questions, one at a time)
  • Show me a real example for my situation
  • What do beginners get wrong?

Knowledge check

Five questions. Get 4 right to earn the Command Line Ready badge. You can retake it as often as you like.

Question 1 of 5

What does cd .. do?

Finished the How software works guides? Take the How software works track test for ten mixed questions.

My notes

Write what clicked, what confused you, and what you want to try. Saved in this browser only.

Learn it live

Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.

See workshops

Practise it

Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.