$
Learn Linux handbook
en
XP:0
Quest 7Architect
+130 XP

Linux Directory Structure & FHS

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

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.

Let's explore the system layout! First, navigate to the root directory by running cd /. Then run ls /etc to view system configuration files stored inside /etc.

Command Syntax Reference

Command / SyntaxDescription
cd /Navigate to root directory
ls /etcList 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.