Filesystem Hierarchy Standard

2 The Filesystem

The UNIX filesystem is characterized by:

This standard assumes that the operating system underlying an FHS-compliant file system supports the same basic security features found in most UNIX filesystems. Note that this standard does not attempt to agree in every possible respect with any particular UNIX system's implementation. However, many aspects of this standard are based on ideas found in UNIX and other UNIX-like systems.

This is after careful consideration of other factors, including:

It is possible to define two orthogonal categories of files: shareable vs. unshareable and variable vs. static.

Shareable data is that which can be shared between several different hosts; unshareable is that which must be specific to a particular host. For example, user home directories are shareable data, but device lock files are not.

Static data includes binaries, libraries, documentation, and anything that does not change without system administrator intervention; variable data is anything else that does change without system administrator intervention.

For ease of backup, administration, and file-sharing on heterogenous networks of systems, it is desirable that there be a simple and easily understandable mapping from directories (especially directories considered as potential mount points) to the type of data they contain.

Throughout this document, and in any well-planned filesystem, an understanding of this basic principle will help guide the structure and lend it additional consistency.

The distinction between shareable and unshareable data is needed for several reasons:

The "shareable" distinction can be used to support, for example:

The "static" versus "variable" distinction affects the filesystem in two major ways:

Here is a summarizing chart. Since this chart contains generalized examples, it may not apply to every possible implementation of an FHS-compliant system.

shareable
unshareable
static

/usr
/opt
/etc
/boot
variable

/var/mail
/var/spool/news
/var/run
/var/lock

Table 2.1


Previous: Conformance with this Document
Next: The Root Directory
Up: Table of Contents

Translated by troff2html 1.5 on 16 November 1997 by quinlan