This guide covers the Linux File System, Mapped.

Open a Linux machine, go to the very top — the root, written as a single slash — and you will see the same set of folders on almost every distribution on earth. That is not an accident or a habit. It is a standard: the Filesystem Hierarchy Standard, maintained by the Linux Foundation, gives every top-level directory a defined job, so a program, a script, or an administrator can find things in the same place on a laptop in Virginia and a server on another continent. Learn the map once and no Linux system is a maze again.
The folders you will touch every day
/home is where ordinary users live. Your documents, downloads and settings sit under /home/yourname, and it is the one tree that is truly yours — the rest of the system belongs to the system.
/etc holds configuration: plain-text files that decide how services behave, which users exist, and how the network is set up. When a tutorial says “edit the config,” it almost always means a file in /etc. Change one carefully, and keep a copy first — a broken file here can stop a service from starting.
/var holds data that changes as the system runs: logs in /var/log, caches, mail spools, and the working files of servers. It is called “variable” for exactly that reason, and it is the first place to look when a disk fills up mysteriously — logs grow.
/tmp is the scratch space: temporary files any program may write, traditionally cleared on reboot. Useful, and a reason to never store the only copy of anything there.
The folders the system runs from
/bin and /sbin hold essential command binaries — /bin for the commands every user needs (ls, cp, cat), /sbin for system administration commands. On most modern distributions both are symbolic links into /usr, a merger the FHS recognises, but the names still work exactly as you expect.
/usr is the big one: the bulk of user programs, libraries, documentation and read-only data that is not needed in the first seconds of boot. Most of what you install lands here — /usr/bin alone usually holds thousands of commands.
/lib (and /lib64) holds the shared libraries those binaries need to run, including the libraries required by everything in /bin and /sbin.
/boot holds the files the machine needs to start at all: the kernel itself and the bootloader configuration. Small, rarely touched, and absolutely not a place to experiment.
/root is the administrator’s home directory — separate from /home on purpose, so the superuser’s files exist even if the /home partition fails to mount.
The folders that are not really folders
/dev contains device files: your disks, terminals and hardware appear here as files (a disk might be /dev/sda), which is how Linux lets ordinary programs read and write hardware through the same calls they use for documents.

/proc and /sys are virtual filesystems created by the kernel in memory. /proc exposes the running system — every process has a numbered folder, and files like /proc/cpuinfo describe the machine live. /sys exposes kernel and device settings. Nothing here sits on a disk; reboot and it is regenerated.
/run holds runtime data for the current boot: process IDs, sockets and locks for running services, cleared at every restart.
The rest of the map
/media and /mnt are mount points: /media is where the system automatically mounts removable drives, /mnt is the traditional spot for mounts an administrator makes by hand. /opt holds optional, self-contained third-party software packages that do not follow the distribution’s own layout. /srv holds data served by services — the files a web or file server offers to others. /lost+found exists on ext filesystems as the recovery drawer where the filesystem checker places orphaned files after a crash.
The bottom line
The Linux file system is a map with a standard behind it: /home for people, /etc for configuration, /var for changing data, /usr for programs, /proc and /sys for the living kernel, /dev for hardware. You do not need to memorise all of it today — you need to know that each folder has a job, so when a guide names a path, you already know what kind of thing you are about to touch.
By Karl Amber
Sources
- Filesystem Hierarchy Standard 3.0 (Linux Foundation, 2015) — the definitions of /, /bin, /boot, /dev, /etc, /home, /lib, /media, /mnt, /opt, /proc, /root, /run, /sbin, /srv, /sys, /tmp, /usr and /var used throughout.
- man-pages project, hier(7) — the Linux manual page describing the filesystem hierarchy in the system’s own documentation.
Editor’s note: this article is part of ScanderLoud’s Cybersecurity & Networking series. It was researched from the Filesystem Hierarchy Standard 3.0 and the man-pages project’s hier(7) — our coverage is original and educational throughout.
That is the complete picture on the Linux File System, Mapped.
Featured image: Andrew S. Tanenbaum, Herbert Bos, Public domain, via Wikimedia Commons

Leave a Reply