EFFECTIVE/AT LIFE Module 2
AI for Friends/ Module 2/ Lesson 2.3

Navigating in the Terminal

Four commands. That's the whole skill — and the real reason this module exists.

~10 MIN DO THIS ONE
The One Lesson Worth Doing

If you only do one lesson in this optional module, do this one. Module 3 assumes you can type a command and read the result.

1Learn the Four Commands

A terminal is just a place to type instructions to your computer. You only need four commands to move around and see what's there — everything else in Module 3 builds on these. Read them once before typing anything.

CommandWhat It DoesExample
pwdShows what folder you're currently inType pwd, press Enter
lsShows all files and folders in your current locationType ls, press Enter
cd FolderNameMoves you INTO a foldercd Documents
cd ..Moves you UP one folder levelcd ..
Same on Mac

These four commands work identically in Mac's built-in Terminal app — no changes needed. Every example below uses the same syntax on Windows and Mac.

Nothing Runs Until You Press Enter

Typing a command does nothing on its own — the terminal waits for Enter. You can always fix a typo before running it, and a typo just produces an error. You cannot break anything this way.

2Run the Practice Exercise

Now you type. This moves you to your home folder, creates a practice folder with two subfolders, and lists them. Type one line, press Enter, read the result, then move to the next.

cd ~
pwd
mkdir ai-practice
cd ai-practice
mkdir shared
mkdir candidate-review
ls

3Confirm What You Built

Reading the output tells you each command worked. Here's what each line did:

CommandWhat It Did
cd ~Moved you to your home folder
pwdShowed you where you are
mkdir ai-practiceCreated a new folder called "ai-practice"
cd ai-practiceMoved you into that folder
mkdir sharedCreated a subfolder called "shared"
mkdir candidate-reviewCreated a subfolder called "candidate-review"
lsShowed you the folders you just created

You now have this structure under your home folder:

ai-practice/
├── shared/
└── candidate-review/
Cross-Check With File Explorer

Open File Explorer (Finder, on Mac), go to your home folder, and find ai-practice. Seeing the same folders you made in the terminal proves the commands did exactly what you typed.

That's the Whole Skill

This is everything you need. When you reach Module 3, typing commands in a terminal will already feel routine.

Verification

You can state which folder you're in using pwd
ls lists shared and candidate-review inside ai-practice
You can move into a folder and back up one level without looking at the table
Practice Once More

Open a terminal, run pwd and ls, then cd into a folder and back out with cd ... Repeating the loop once more locks in the muscle memory before Module 3.

Related Resources

Terminal basics done

Typing commands in a terminal and browsing an editor will already feel routine when you reach Module 3. Two more optional lessons here cover creating an AWS account and deploying a real site — or skip straight to Module 3 if you're ready.