The hierarchy of the file system in Linux

T

Filesystem Hierarchy Standard (FHS) is a standard that defines the structure of directories and their content in *nix operating systems. The standard is maintained by the Linux Foundation and is currently in version 3.0, announced on June 3, 2015.

Partitions can be mounted almost anywhere in the Linux directory tree. Thus, some Linux directories can be put/mounted on separate partitions to ease the administration of the system and, why not, even reinstalling it. For example, if we have /home on a separate partition, we can also have the /home/mvps directory that serves as a mount for another partition.

So what is the Linux file system schema and what are the directories that can usually be placed on separate partitions? The table below shows the directory structure in Linux according to the latest FSH standard, but also the usual size of a partition if a directory is fit to be placed on a separate partition. The values shown may vary depending on how the system is used, so they can not be taken as officially imposed values.

 

Some directories should never be placed on separate partitions -/etc, /bin, /sbin, /lib, /dev. These directories contain critical system configuration files or files without which Linux could not work. For example, /etc contains the fstab file that specifies the associated partitions and directories, and /bin contains the mount that allows mount partitions in directories.

Some distributions do not fully maintain the FSH standard and can make some changes in this hierarchy.

Recent Posts

Archives

Categories