Module 2: Filesystem Structure

The Linux filesystem is a hierarchical structure that organizes all files and directories on your system. Understanding this structure is essential for navigating and managing your Linux environment effectively.

Key Concept: In Linux, everything is treated as a file - even devices, processes, and system information are represented as files in the filesystem.

What You'll Learn in This Module

Module Objectives

By the end of this module, you will be able to:

Why This Matters

Understanding the filesystem structure is crucial because:

The Filesystem Hierarchy

Linux follows the Filesystem Hierarchy Standard (FHS), which defines the directory structure and contents. Here's an overview of the most important directories:

/ ├── bin/ # Essential user binaries ├── sbin/ # System binaries ├── etc/ # Configuration files ├── dev/ # Device files ├── proc/ # Process information ├── var/ # Variable data ├── home/ # User home directories ├── usr/ # User programs ├── tmp/ # Temporary files ├── opt/ # Optional software ├── boot/ # Boot loader files ├── lib/ # System libraries └── root/ # Root user home

Key Directories and Their Purposes

System Directories

User Directories

Runtime Directories

Memory: Think of / as the trunk of a tree, with each directory as a branch. Understanding this tree structure helps you navigate efficiently.

Getting Started

Ready to explore the Linux filesystem? Start with the first lesson about the filesystem hierarchy structure.

Start with Filesystem Structure

Quick Terms to Know

Here are some terms we'll be using throughout this module:

Don't memorize everything! Focus on understanding the most common directories (/home, /etc, /var, /usr). You'll become familiar with others through practice.