Thuta Learning
BasicDevOps & Toolsbeginner

The Linux Filesystem Layout

Relax. We'll talk through this in plain words — no textbook voice.

What you'll walk away with

  • Understand the Linux filesystem layout, without the intimidation
  • Get comfortable trying out commands yourself in the terminal
  • See how these commands are actually useful on a real server or project

Let's think about it this way for a second

Picture the Linux filesystem as a tree — root (/) is the trunk, and folders (directories) are the branches. /home = each user's own personal room (similar to Documents/Desktop on Windows). /etc = system-wide configuration files (the shop's rule book). /var = constantly changing data like logs and caches (the shop's order book). /bin, /usr/bin = program executables (the shop's toolbox). /tmp = temporary files (a table set up to be cleared out). All of these sit on that same single tree — even a USB drive gets mounted somewhere under /media, no separate drive letter needed.

Let's connect this to a real-world scenario

As a beginner, mostly work inside /home/<username>/ (your own room) — you won't be able to modify other system folders without sudo, and that's a form of protection, not an obstacle. If you need to edit a config file, you'll know to look in /etc; if you want to check an error log, it's in /var/log — you'll run into both of these in later chapters.

Let's try it together in the terminal

text
/           ← root, tree ရဲ့ ဇာစ်မြစ်
├── home/   ← user folders (Documents လို)
├── etc/    ← configuration files
├── var/    ← logs, changing data
├── bin/    ← core programs
└── tmp/    ← temporary files
You should see
Being able to explain what the five major folders (/home, /etc, /var, /bin, /tmp) are used for.

5-minute try-it

Run ls / and write down how many folders you see at root. Pick 2 of them and guess what each one is for.

A quick word of caution

Be careful running commands from / — you could affect the entire root filesystem. As a beginner, practice inside /home instead.

Easy traps

  • Assuming /etc just stands for 'etcetera' without realizing it's actually the config folder
  • Treating system folders (/etc, /bin) like your own personal playground

Now try it yourself

Run ls / and write down how many folders you see at root. Pick 2 of them and guess what each one is for.

You'll know it worked when: Being able to explain what the five major folders (/home, /etc, /var, /bin, /tmp) are used for.

The Linux Filesystem Layout | Thuta Learning