Learning Platformprototype

Day 5 — Terminal: Not As Scary As It Looks

Time: ~45 min · Date: Wed Apr 29

Why this matters

The Terminal is just another way to talk to your computer. Instead of clicking icons, you type commands. It looks intimidating because hackers in movies use it. But the same way email replaced fax, command lines didn't go away — programmers just kept using them because they're faster.

You won't be a power user. You'll know enough to:

  • Run the bootstrap script
  • Update Claude Code occasionally
  • Copy-paste commands from the guides without panic
  • Recognize what a command is doing if it goes sideways

That's it. We're aiming for "literate," not "fluent."

The 30-second mental model

A terminal shows you a prompt — a small bit of text that means "I'm waiting for you to type something." Like this:

debbie@MacBook ~ %

Translation: "Hi, I'm Debbie's MacBook. You're currently sitting in your home folder (~). Type a command."

You type, press Return, the computer does the thing, and you're back at the prompt waiting for the next command.

Anatomy of a command

ls -la ~/Documents

Three parts:

  1. ls — the command name. ("List.") This one shows files.
  2. -la — flags. Modify the command's behavior. (-l = long format, -a = include hidden.)
  3. ~/Documents — argument. What the command operates on. ("List the files inside ~/Documents.")

Most commands follow this pattern: command [flags] [arguments].

The basics you'll actually use

CommandWhat it doesExample
pwdPrint working directory ("where am I?")pwd
lsList files in current directoryls
ls -laList with hidden files and detailsls -la
cd <folder>Change directorycd Documents
cd ~Go to your home foldercd ~
cd ..Go up one foldercd ..
mkdir <name>Make a new directorymkdir notes
cp <a> <b>Copy file a to bcp file.txt backup.txt
mv <a> <b>Move/rename filemv old.txt new.txt
rm <file>Delete a file (no recycle bin!)rm file.txt
cat <file>Show contents of a filecat README.md
clearClear the screenclear
exitClose the terminalexit

⚠️ rm is permanent. No recycle bin. There's no "are you sure?" prompt either. Be careful — but mostly, just don't run rm until you're comfortable. The bootstrap script doesn't ask you to.

Important concepts in 60 seconds

Paths

Where a file is on disk.

  • Absolute path: starts with / — full address from root. /Users/debbie/Documents/notes.md
  • Relative path: starts where you currently are. If you're in ~/Documents, then notes.md and ./notes.md are the same file.
  • ~ is shorthand for your home folder.
  • . means "current folder."
  • .. means "parent folder."

Variables

Sometimes you'll see $SOMETHING in commands. That's a variable. The shell replaces it with whatever value it holds. You'll see things like $HOME (which is /Users/debbie) or $OBSIDIAN_VAULT (which we set up to point at your vault).

Pipes

The | character takes the output of one command and feeds it as input to the next. You don't need to write these — but you'll see them in guides.

ls | grep "listing"

Translates to: "list files, then filter for ones containing 'listing'."

Permissions

Sometimes you'll see sudo at the start of a command. It means "do this with admin privileges; ask for my password." Like running an installer as administrator on Windows. Bootstrap won't make you sudo for anything sensitive — just for the Homebrew install, which is normal.

Reading a command before running it

Before you paste any command from any guide (mine included), eyeball it.

Safe to run:

  • ls
  • cd ~/projects
  • git pull
  • npm install

🟡 Worth pausing to read:

  • Anything starting with sudo
  • Anything containing rm
  • Anything piping into bash directly (curl ... | bash) — usually fine if from a trusted source like the official Homebrew installer

🔴 Don't run, ever:

  • rm -rf / or rm -rf ~
  • Anything you got from a sketchy source
  • Anything that says "you'll never believe what this does"

Exercise (~25 min)

You don't have the Mac yet, but you can practice on Windows in PowerShell. Most basic commands work the same or have close cousins.

  1. Open PowerShell (Start menu → type "powershell" → enter).
  2. Try each:
    • pwd — should show your current folder
    • ls (PowerShell aliases this to dir)
    • cd Documents
    • pwd again — different folder now?
    • cd ..
    • cd ~
    • clear
  3. Notice: PowerShell uses \ separators while Mac/Linux use /. Otherwise, similar concepts.

Bonus: open the Notepad equivalent and try writing a one-line markdown file:

# My first command-line file

Save it as test.md somewhere. Now in PowerShell, cd to that folder and run cat test.md (or type test.md). You just used a command line to read a file you made. That's the loop.

Recap

You should now be able to:

  • Open a terminal and read its prompt
  • Move around with cd, cd .., cd ~
  • List files with ls
  • Explain what ~, ., and .. mean
  • Spot a command that needs caution (rm, sudo)

Going deeper (optional, ~30 min)

Watch (~15 min)

  • Search YouTube: "macOS terminal for beginners" — pick a 10–15 min intro. NetworkChuck has accessible terminal content if you want to like the topic, not just survive it.

Read (~15 min)

Try (if you have extra time)

In PowerShell on your PC, navigate to a folder you actually use and ls it. Make a folder called from-the-terminal and put one empty text file inside. You created something with words instead of clicks. That's the whole magic trick.

Done?

  • Day 5 complete

Next: Day 6 — How software gets made

Lesson recap

Done with this lesson?
Mark it complete to track your progress.