ArticleslgStudy

computer science

Filesystem Hierarchy Standard

Filesystem Hierarchy Standard is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Filesystem Hierarchy Standard rather than just read about it. In short: The Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of Unix-like systems. It has been made popular by its use in Linux distributions, but it is used by other Unix-like systems as well.

Filesystem Hierarchy Standard — main illustration
Filesystem Hierarchy Standard — illustration

Key takeaways

  • Filesystem Hierarchy Standard belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Filesystem Hierarchy Standard to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Filesystem Hierarchy Standard from memory before moving on to harder problems.

Reference excerpt

The Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of Unix-like systems. It has been made popular by its use in Linux distributions, but it is used by other Unix-like systems as well. The latest version of the standard, version 3.0, was originally released on 3 June 2015 by the Linux Foundation. It was republished on 6 November 2025 by FreeDesktop, which has since assumed maintenance of the specification.

Directory structure

In the FHS directory structure, all files and directories appear under the root directory /, even if they are stored on different physical or virtual devices. Some of these directories only exist in a particular system if certain subsystems, such as the X Window System, are installed. Most of these directories exist in all Unix-like operating systems and are generally used in much the same way; however, the descriptions here are those used specifically for the FHS and are not considered authoritative for platforms other than Linux.

FHS compliance Most Linux distributions follow the Filesystem Hierarchy Standard and declare it their own policy to maintain FHS compliance. GoboLinux and NixOS provide examples of intentionally non-compliant filesystem implementations. Some distributions generally follow the standard but deviate from it in some areas. The FHS is a "trailing standard", and so documents common practices at a point in time. Of course, times change, and distribution goals and needs call for experimentation. Some common deviations include:

Modern Linux distributions include a /sys directory as a virtual filesystem (sysfs, comparable to /proc, which is a procfs), which stores and allows modification of the devices connected to the system, whereas many traditional Unix-like operating systems use /sys as a symbolic link to the kernel source tree. Many modern Unix-like systems (such as FreeBSD and OpenBSD) via their ports systems install third-party packages into /usr/local, while keeping code considered part of the operating system in /usr. Some Linux distributions no longer differentiate between /lib and /usr/lib and have /lib symlinked to /usr/lib. Some Linux distributions no longer differentiate between /bin and /usr/bin and between /sbin and /usr/sbin. They may symlink /bin to /usr/bin and /sbin to /usr/sbin. Other distributions choose to consolidate all four, symlinking them to /usr/bin. Modern Linux distributions include a /run directory as a temporary filesystem (tmpfs), which stores volatile runtime data, following the FHS version 3.0. According to the FHS version 2.3, such data were stored in /var/run, but this was a problem in some cases because this directory is not always available at early boot. As a result, these programs have had to resort to workarounds, such as using /dev/.udev, /dev/.mdadm, /dev/.systemd or /dev/.mount directories, even though the device directory is not intended for such data. Among other advantages, this makes the system easier to use normally with the root filesystem mounted read-only. For example, below are the changes Debian made in its 2013 Wheezy release:

/dev/.* → /run/* /dev/shm → /run/shm /dev/shm/* → /run/* /etc/* (writeable files) → /run/* /lib/init/rw → /run /var/lock → /run/lock /var/run → /run /tmp → /run/tmp

History FHS was created as the FSSTND (short for "Filesystem Standard"), largely based on similar standards for other Unix-like operating systems, such as the Version 7 Unix hier(7) from 1979, the SunOS 4.x filesystem(7) and its successor, the Solaris filesystem(7), and the FreeBSD hier(7).

Release history

See also Hierarchical file system Unix directory structure XDG Base Directory Specification

Notes

References

External links Official website FHS Mailing List FHS repo Official website (2015–2025, historical) Original FHS website (archival) systemd: file-hierarchy — File system hierarchy overview UAPI Group Specifications: Linux File System Hierarchy "Objectroot". Archived from the original on 16 October 2021. A proposal for a new filesystem hierarchy, based on object-oriented design principles. "Dotted Standard Filename Hierarchy". Archived from the original on 8 May 2005. Yet another very different hierarchy (used in cLIeNUX). hier(7) – Linux Programmer's Manual – Overview, Conventions and Miscellanea from Manned.org

Worked examples

Example 1 — a first encounter with Filesystem Hierarchy Standard

Start with the simplest possible case. Write down what Filesystem Hierarchy Standard claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Filesystem Hierarchy Standard before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Filesystem Hierarchy Standard ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Filesystem Hierarchy Standard

In research
Filesystem Hierarchy Standard appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Filesystem Hierarchy Standard in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Filesystem Hierarchy Standard is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer standards, File system directories, Linux, so understanding it makes those chapters shorter.
In everyday life
Look for Filesystem Hierarchy Standard outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Filesystem Hierarchy Standard” →

How to study Filesystem Hierarchy Standard in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Filesystem Hierarchy Standard means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Filesystem Hierarchy Standard out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Filesystem Hierarchy Standard in simple terms?

The Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of Unix-like systems. It has been made popular by its use in Linux distributions, but it is used by other Unix-like systems as well.

Why does Filesystem Hierarchy Standard matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Filesystem Hierarchy Standard?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Filesystem Hierarchy Standard.

Tags

  • Computer standards
  • File system directories
  • Linux
  • System administration
  • Unix file system technology

Keep exploring