/), following the Filesystem Hierarchy Standard (FHS) — a convention that defines where different types of files live. Unlike Windows, which assigns drive letters to separate storage volumes, Linux mounts everything into one unified tree. Understanding where configuration files, binaries, logs, and user data reside helps you find what you need quickly and avoid making changes in the wrong place.
Key Directories
| Directory | Purpose |
|---|---|
/ | Root of the entire filesystem; every path starts here |
/home | Personal directories for regular users (e.g., /home/alice) |
/etc | System-wide configuration files |
/var | Variable data: logs, databases, mail spools, caches |
/tmp | Temporary files; cleared on reboot |
/usr | User-space programs, libraries, and documentation |
/bin | Essential user binaries (ls, cp, mv, etc.) |
/sbin | System administration binaries (fdisk, iptables, etc.) |
/opt | Optional third-party software packages |
/dev | Device files representing hardware (disks, terminals, etc.) |
/proc | Virtual filesystem exposing kernel and process information |
/sys | Virtual filesystem for hardware and driver configuration |
Navigating the File System
Use these commands to move around and inspect the directory tree.File Operations
Copy, move, rename, delete, and create files and directories with these essential commands.Searching for Files
Linux provides several tools for locating files across the filesystem.Use find for precise searches
find searches the live filesystem in real time. Combine flags like -name, -type, -size, and -mtime to narrow results.Use locate for fast lookups
locate queries a pre-built index for near-instant results. Run sudo updatedb first to refresh the index if the file was recently created.