Zero experience required

Terminal for Complete Beginners

Learn the Terminal from zero — a text box that talks to your computer, explained like a text thread.

The Big Picture

A text box that talks to your computer — one instruction at a time.

Apps give you buttons. The Terminal gives you a blinking cursor. You type a short instruction, press Return, and the computer does that one thing. You need it for Git, for getting into the right folder, and for any tool that only has a command — not a pretty window.

If Cursor or GitHub Desktop shows a black box, that is a terminal. Same idea, different window.
  • Go to a folder without clicking through Finder
  • Run Git so you can save and push — see the GitHub 101
  • See exactly what happened — the reply is text you can copy

The Texting Analogy

Texting a friend one messageTyping one command
“Where are you?”pwd
“What’s in that drawer?”ls
“Walk into the kitchen”cd Kitchen

Key Terms

Terminal

The window where you type. On a Mac: Terminal.app. In Cursor: the bottom panel.

Prompt

The text before your cursor. It means: I am ready. Type here.

Directory

A folder. pwd tells you which one you are standing in.

Path

The address of a file or folder. ~ is your home.

Setting Up

1

Mac

Command + Space, type Terminal, press Return. You do not install it — it is already there.

2

Inside Cursor

New Terminal, or Control + `. It usually starts in your project folder.

3

Windows

Use Git Bash (from git-scm.com) so the commands in the GitHub guide match.

First Commands

Type exactly. Press Return. Read the reply.

zsh — ~
% pwd
/Users/you
% ls
Desktop Documents Downloads
% whoami
you

pwd = where am I. ls = what’s here. whoami = your username. If you see command not found, you typo’d — try again.

Control + C cancels a running command. It does not close the window.

Moving Around

This is 80% of beginner use: know where you are, then go somewhere.

TypeMeaning
pwdPrint working directory — where am I?
ls / ls -laList files (long + hidden)
cd DocumentsGo into that folder (case-sensitive)
cd ..Go up one folder
cd ~ or cdGo home

Press Tab to finish a name. Type cd and drag a folder from Finder to paste the path.

Looking at Files

cat README.md prints a short file. open . on a Mac opens this folder in Finder. Edit novels in Cursor — use the Terminal to get there.

Making Things

TypeDoes
mkdir practice-folderCreate a folder
touch notes.mdCreate an empty file
cp a.md b.mdCopy
mv a.md inbox.mdRename or move
rm file.mdDelete forever — no Trash

How Commands Work

Most lines are command -flags arguments. Spaces matter. If a folder has a space: cd "My Folder".

Many commands print nothing when they work. cd and mkdir are like that. Check with pwd or ls.

Path to GitHub

Stand in the project, then use the Git words from the GitHub 101.

in the project
% cd ~/Documents/TestBot
% pwd
/Users/you/Documents/TestBot
% git status

If Git says not a git repository, you are in the wrong folder.

Dangerous Commands

CommandSafer habit
rm / rm -rls first. Prefer Finder Trash while learning.
rm -rf /Never type this.
sudoYou almost never need it for Git or these guides.
A long paste from the internetRead it. If you don’t understand it, don’t run it.

When It Breaks

  • command not found — typo, or Git is not installed.
  • No such file or directory — wrong name or folder. pwd + ls.
  • Stuck on > — unclosed quote. Control + C.
  • Stuck in vim — type :q! and Return. Edit in Cursor instead.

Vs Other Tools

Finder to browse and trash safely. Terminal when a guide says “run this.” GitHub Desktop if Git-in-the-terminal is still too much. Cursor when you want an agent — it has a terminal inside it.

Common Mistakes

MistakeBetter
Skipping pwdAlways check where you are
Ignoring caseTab complete
Spaces without quotescd "My Folder"
Pasting blindlyRead every line
Using sudo to “make it work”Fix the path instead

Cheat Sheet

pwd · ls · cd Folder · cd .. · cd ~ · open . · mkdir · touch · Control+C · Tab

Git: GitHub 101. Editor: Cursor 101.

Glossary

Shell reads your commands (often zsh). ~ is home. . is this folder. .. is the parent. rm deletes with no Trash.