← Cheat Sheets

Linux Directory Structure

What lives where.

# Linux Directory Structure

What lives where.

| Path | Purpose |
|---|---|
| `/` | Root of the file system |
| `/home` | User home directories |
| `/root` | Home of the root user |
| `/etc` | System configuration |
| `/var` | Variable data: logs, caches, spool |
| `/usr` | Installed programs and libraries |
| `/bin` `/sbin` | Essential commands |
| `/opt` | Optional third-party software |
| `/tmp` | Temporary files |
| `/dev` | Device files |
| `/proc` | Kernel and process information |
| `/boot` | Kernel and boot loader |
| `/mnt` `/media` | Mount points |
| `/srv` | Data served by the system |