Linux Directory Structure & FHS
Concept & Overview
Every Linux system follows a standard filesystem hierarchy starting from the root directory /. Unlike Windows (which uses drive letters like C: or D:), Linux unifies all files and storage under /.
Here are key system directories every Linux user should know:
- / (Root): The top-level parent folder of the entire system.
- /etc: Holds system configurations (e.g. /etc/hosts, /etc/passwd).
- /var: Holds variable data that changes over time (logs, spool, caches like /var/log).
- /home: User personal folders (e.g. /home/learner).
- /tmp: Temporary storage area for transient files.
- /usr: User utilities, applications, and system libraries.
cd /. Then run ls /etc to view system configuration files stored inside /etc.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
cd / | Navigate to root directory |
ls /etc | List configuration files in /etc |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Navigate to the root directory (/)
- ○List contents of /etc directory
Ready to complete Quest 7?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.