Module 04

Linux Filesystem Hierarchy

In Windows, you have C:, D:, E: drives. In Linux, there is only One Tree. Everything starts at Root (/).

โฑ๏ธ 25 min read๐Ÿ—บ๏ธ Concept๐Ÿ“… Updated: Jan 2026

1 The Upside-Down Tree

Linux organizes files like an upside-down tree. The trunk is at the top, and branches grow downwards.

/home/user/notes.txt
๐Ÿ  The House Analogy

Linux builds One Mansion. Hard drives are just Rooms (/mnt).

2 The Neighborhood Tour (FHS)

Memorize these 5 key locations:

/
Root. Top level.
TOP
/home
Users. My Documents.
USER
/etc
Configs.
SETTINGS
/var
Variable. Logs, Web.
LOGS
/bin
Binaries. Apps.
APPS

3 Absolute vs Relative Paths

๐Ÿ“Œ Absolute

Full address from Root.

cd /home/user/downloads

๐Ÿ‘‰ Relative

From where you are.

cd downloads

4 The Secret Files

Files starting with . are hidden.

ls -a