The Filesystem Hierarchy

Filesystem Hierarchy Standard (FHS)

You met a handful of these directories briefly in the Foundations track. Here's the fuller map - every mainstream Linux distro follows the same Filesystem Hierarchy Standard (FHS), which is exactly why the same muscle memory works whether you're on Ubuntu, Debian, or RHEL.

PathPurpose
/Root of everything
/bin, /sbinEssential (system) binaries
/etcSystem configuration
/homeUser home directories
/varVariable data - logs, spool, caches
/tmpTemporary files (often cleared on boot)
/usrUser programs & libraries
/optOptional/3rd-party software
/proc, /sysVirtual kernel filesystems
/devDevice files
/bootKernel + bootloader
/mnt, /mediaMount points for removable/temp media

A useful way to group these: /etc, /bin, /boot hold things that rarely change once the system is installed. /var and /tmp are the opposite - /var literally stands for "variable," meaning its contents (logs, mail queues, caches) are expected to keep growing and changing for the system's entire lifetime, which is exactly why disk-usage incidents so often trace back there.

Tip: When something is misbehaving, two facts solve a surprising share of real incidents before you even open a debugger: its configuration is almost certainly in /etc, and its logs are almost certainly in /var/log. Get in the habit of checking those two locations first, by reflex, before searching further.