0:00–0:10
Recap
0:10–0:40
Lecture
0:40–1:50
Lab 2 Pt 1–2
1:50–2:00
Debrief
0:00 – 0:10 Recap · 10 min

Verify desktop2 and collect research answers

0:10 – 0:40 Lecture · 30 min

The terminal, TTY, the Linux filesystem hierarchy, and paths

Part 1 — Terminal vs. shell, and why bother (8 min)

Part 2 — The Linux filesystem hierarchy (12 min)

DirectoryPurposeWindows equivalent
/The root — top of the entire filesystem treeC:\ (roughly)
/binEssential user binaries — ls, cp, mv, cat, grep. Must be available even in single-user modeC:\Windows\System32 (partly)
/sbinSystem binaries for admin tasks — fdisk, ifconfig, mount. Root-only toolsElevated system utilities
/homeUser home directories — /home/student, /home/alice, etc. Personal files live hereC:\Users\
/rootHome directory of the root user — separate from /home for securityC:\Users\Administrator
/etcConfiguration files — editable text files that control system and application behaviourRegistry (conceptually)
/varVariable data — logs, mail, package manager data, print spool. Changes constantlyC:\Windows\Logs + C:\ProgramData
/tmpTemporary files — cleared on reboot. World-writableC:\Windows\Temp
/usrUser-installed programs and their support files — most applications live hereC:\Program Files
/optOptional/third-party software that doesn't follow standard layoutC:\Program Files (non-standard installs)
/devDevice files — every hardware device appears as a file here. /dev/sda = first diskNo direct equivalent
/procVirtual filesystem — shows running processes and kernel info as files. Not on diskTask Manager data, roughly
/libShared libraries required by /bin and /sbin — like .dll filesC:\Windows\System32 .dll files
/mediaMount point for removable media — USB drives, DVDs auto-mount hereD:\ (removable drives)

Part 3 — Absolute vs. relative paths (10 min)

0:40 – 1:50 Lab 2 Parts 1–2 · 70 min

Lab 2 — The Terminal: TTY, navigation, and directory operations

All lab work today is on desktop1. Log in as student. The goal by end of session is confident navigation — moving around the filesystem, creating and removing directories, and understanding the difference between absolute and relative paths without having to think about it.

Part 1 — Terminals and TTY (15 min)

Key insight: The GUI is just another process running in a TTY. If the desktop crashes, Ctrl+Alt+F3 gets you to a working terminal to diagnose and fix it. This is one of the most practically useful things about Linux — you always have a way in.

Part 2 — Navigation and directory operations (55 min)

⭐ Early finisher — OverTheWire Bandit Level 0
  • You now know enough to attempt Bandit Level 0. Open a terminal and run: ssh bandit0@bandit.labs.overthewire.org -p 2220 — password is bandit0
  • Level 0: the password for Level 1 is stored in a file called readme in the home directory. Find it and connect to bandit1. Record the password somewhere safe — you will need it to reconnect.
  • Level 1: the password is in a file called - (a dash). How do you read a file with that name? Think about how the shell interprets a leading dash...
1:50 – 2:00 Debrief · 10 min

Paths, TTY, and what's coming tomorrow

Learning outcomes — by end of Day 3, students can…

Explain terminal vs. shellDescribe the difference between a terminal emulator and bash, and why the distinction matters
Navigate between TTYsSwitch between GUI and text TTYs using keyboard shortcuts and explain what each is
Name filesystem hierarchy dirsState the purpose of /, /bin, /etc, /home, /var, /tmp, /opt, /dev, and /proc from memory
Write absolute and relative pathsGiven a current directory and a target, produce both the absolute and relative path correctly
Use mkdir, rmdir, cd, lsCreate and remove directories, navigate the filesystem, and interpret ls -l output
Handle filenames with spacesCreate and reference files and directories whose names contain spaces using quotes or escaping

What to have ready before class

Lab 2 handout printed (Parts 1–2 today, Parts 3–5 tomorrow) Filesystem hierarchy table on whiteboard or projector Both student VMs confirmed working at start of class
←← Week 1 Overview ← Day 2 Lab 1C Handout Day 4 →