Open a Linux machine for the first time and the folders look like alphabet soup: /etc, /var, /usr, /bin… The good news is that the Linux file system hierarchy follows a logical plan that has barely changed in decades. Once you learn what each top-level directory is for, the whole system stops being mysterious. This guide explains the Linux file system hierarchy in plain English, one directory at a time. This article covers Linux File System Hierarchy Explained in detail.
The Linux File System Hierarchy Starts with One Root – Linux File System Hierarchy Explained
Windows gives each disk its own letter, like C: and D:. Linux does it differently: everything lives in a single tree that starts at the root directory, written as a single slash: /. Every file, folder, and even every device hangs somewhere on this tree. A path like /home/alex/notes.txt simply means: start at the root, go into home, then into alex, and there is the file.
This design is part of an official standard called the Filesystem Hierarchy Standard (FHS), which is why the layout looks the same on Ubuntu, Debian, Fedora, and almost every other distribution. Learn it once and you can find your way around any Linux machine.
The Directories in the Linux File System Hierarchy You Will Use Daily – Linux File System Hierarchy Explained
/home – This is where regular users keep their personal files. If your username is alex, your documents, downloads, and settings live in /home/alex. It is the Linux equivalent of the Users folder on other systems, and it is the directory you start in when you open a terminal.
/etc – Pronounced “etsy” by many admins, this folder holds configuration files for the whole system: network settings, user accounts, and program options. When a tutorial says “edit the config,” it usually points somewhere in /etc.
/var – Short for “variable,” because its contents change all the time. Logs live in /var/log, websites often live in /var/www, and caches and mail queues sit here too. If a disk fills up mysteriously, /var is the first suspect.
/tmp – A scratch space for temporary files. Programs drop short-lived data here, and the contents are usually cleared on reboot. Never store anything precious in /tmp.

More Directories in the Hierarchy Worth Knowing
/usr – A huge directory containing most programs and their supporting files. /usr/bin holds the commands you run, and /usr/share holds data they share. Think of /usr as the system’s giant toolbox.
/bin and /sbin – Essential commands needed to boot and repair the system. On modern distributions these are usually shortcuts (links) to their counterparts inside /usr.
/root – The home directory of the administrator account, called “root.” Note the trap for beginners: /root (a folder) is not the same thing as / (the root of the tree).
/mnt and /media – Places where extra drives are “mounted” (attached) so you can browse them. USB sticks usually appear automatically under /media.
/dev and /proc – Special folders that do not hold normal files at all. /dev represents hardware devices as files, and /proc shows live information about the running system and its processes.
A Worked Example: Reading a Real Linux Path
Let us put the map to work with a path you will genuinely meet: /var/log/syslog. Reading it with the hierarchy in mind, it decodes itself: start at the root /, enter var because logs are variable data that grows over time, then log because this is the log folder, and finally the file syslog itself. Three other directories round out the map. /boot holds the small set of files needed to start the machine, so it is left alone. /opt is where some third-party programs install themselves, each in its own neat subfolder. And /srv can hold data served to others, such as website files on some distributions. You do not need to memorise every branch today. Just knowing that each directory has one job turns scary paths into sentences you can read.
Common Beginner Mistakes with Linux Paths
- Confusing
/and~. The slash is the top of the whole tree; the tilde~is a shortcut to your own home directory. - Forgetting that Linux is case-sensitive.
Documentsanddocumentsare two different folders. - Deleting files in
/etccasually. A wrong edit there can stop the system from booting. Make a backup copy first – a habit we also recommend in our guide on what Linux is and how it works. - Assuming drives get letters. In the Linux file system hierarchy, extra disks simply become folders inside the tree.
Conclusion
The Linux file system hierarchy is one tree, starting at /, with each top-level directory given one clear job: /home for your files, /etc for settings, /var for changing data, /tmp for scratch work, and /usr for programs. Bookmark this map, then practise moving around it with the beginner commands in our Linux terminal guide for beginners. You can also read the full official standard at the Linux Foundation’s FHS reference.