Linux File System Hierarchy Explained: FHS 3.0 and the /usr Merge

Linux arranges everything in one tree that starts at the root directory, /. The Filesystem Hierarchy Standard (FHS) 3.0, published by the Linux Foundation, defines what goes where: /etc holds system configuration, /home holds user files, /var holds changing data such as logs, /usr holds installed programs and libraries, /tmp holds temporary files, and /proc and /sys expose kernel information.

Mar 21, 2025 - 09:41
Updated: 
103k

Linux Administration in IT Infrastructure · Explainer

Linux File System Hierarchy Explained: FHS 3.0 and the /usr Merge

Quick answer: Linux arranges everything in one tree that starts at the root directory, /. The Filesystem Hierarchy Standard (FHS) 3.0, published by the Linux Foundation, defines what goes where: /etc holds system configuration, /home holds user files, /var holds changing data such as logs, /usr holds installed programs and libraries, /tmp holds temporary files, and /proc and /sys expose kernel information. Most current distributions have also merged /bin, /sbin and /lib into /usr, keeping the old names as symbolic links. Knowing the layout helps you administer systems, troubleshoot faster and know where to look during a security investigation.

Key takeaways

  • There are no drive letters; disks are mounted somewhere in the single tree.
  • FHS 3.0 is the reference for directory purposes.
  • On merged-/usr systems, /bin points to /usr/bin.
  • /etc, /var/log and home directories matter most in investigations.
  • Separate mounts with noexec and nosuid options can harden /tmp.

Table of Contents

How Is the Linux Directory Tree Organised?

Everything, including disks, USB drives and network shares, appears under /. The FHS 3.0 separates files by two ideas: shareable or local, and static or variable. Programs in /usr are static and shareable; logs in /var are variable and local. The hier(7) and file-hierarchy(7) manual pages describe the layout on your own system.

What Does Each Top-Level Directory Contain?

DirectoryPurpose
/bootKernel, initramfs and boot loader files
/etcSystem-wide configuration files
/homeUsers' personal directories
/rootHome directory of the root user
/usrInstalled programs, libraries and documentation
/usr/localSoftware installed locally by the administrator
/optAdd-on packages from third parties
/varVariable data: logs, caches, spool, databases
/tmpTemporary files, often cleared at boot
/srvData served by this system, such as web content
/mnt and /mediaTemporary and removable mounts
/runRuntime data since boot, such as PID files

What Is the /usr Merge?

Historically /bin and /sbin held tools needed before /usr was mounted. Modern systems mount /usr early, so the split no longer helps. The freedesktop.org case for the /usr merge explains the reasoning. Fedora 17 made the move, and the Debian 12 release notes state that a merged /usr is now required. Check yours with ls -ld /bin /sbin /lib; on a merged system they are links to usr/bin, usr/sbin and usr/lib.

What Are /proc, /sys and /dev?

These are not stored on disk. /proc shows processes and kernel settings, for example /proc/cpuinfo and /proc/PID/cmdline. /sys exposes devices and drivers. /dev contains device files such as /dev/sda and /dev/null. Reading them is a safe way to learn about a running system.

Which File System Types Are Common?

TypeTypical use
ext4Default on Debian and Ubuntu
XFSDefault on RHEL
BtrfsDefault on Fedora Workstation; snapshots
tmpfsMemory-backed /run and often /tmp
vfatEFI system partition at /boot/efi

Which Directories Matter Most for Security?

  • /etc: passwd, shadow, sudoers, ssh and cron settings; changes here deserve alerts.
  • /var/log: authentication and system logs; protect them and ship copies off the host.
  • /tmp and /dev/shm: world-writable, so attackers often drop files there. The CIS Benchmarks recommend separate mounts with nodev, nosuid and noexec.
  • Home directories: check .ssh/authorized_keys and shell startup files for unexpected entries.

Permissions decide who can use each directory; see our file permissions guide.

How Do You Explore the Hierarchy Yourself?

ls -l /                       # top-level directories
findmnt                       # what is mounted where
df -hT                        # usage and file system types
du -sh /var/log               # size of the log directory
sudo find /etc -mtime -1      # config files changed in the last day

Our FHS overview adds more background. Build these skills with labs in our Linux administration training.

References

Frequently Asked Questions

The FHS is a Linux Foundation specification that defines the purpose of standard directories such as /etc, /usr and /var. Version 3.0 is current.

The single slash is the top of the whole directory tree. /root is the home directory of the root user, kept separate from /home.

It moves programs from /bin, /sbin and /lib into /usr and leaves symbolic links behind. Fedora, Debian 12 and many other distributions use it.

Most logs live under /var/log. On systemd systems the journal is read with journalctl and may be stored in /var/log/journal.

System-wide configuration lives in /etc. User-specific settings are usually hidden files or folders inside each user’s home directory.

No. They are virtual file systems created by the kernel in memory, giving live information about processes, devices and kernel settings.

/opt holds self-contained third-party packages, while /usr/local holds software the administrator builds or installs locally outside the package manager.

/tmp is writable by everyone. Mounting it with noexec, nosuid and nodev makes it harder for an attacker to run dropped files from there.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.