Filesystem Hierarchy Standard

3 The Root Directory

This section describes the root directory structure. The contents of the root filesystem should be adequate to boot, restore, recover, and/or repair the system:

The primary concern used to balance these considerations, which favor placing many things on the root filesystem, is the goal of keeping root as small as reasonably possible. For several reasons, it is desirable to keep the root filesystem small:

Software should never create or require special files or subdirectories in the root directory. Other locations in the FHS hierarchy provide more than enough flexibility for any package.

BEGIN RATIONALE

There are several reasons why introducing a new subdirectory of the root filesystem is prohibited:

END RATIONALE

/
bin
boot
dev
etc
home
lib
mnt
opt
root
sbin
tmp
usr
var
the root directory
Essential command binaries
Static files of the boot loader
Device files
Host-specific system configuration
User home directories
Essential shared libraries and kernel modules
Mount point of temporary partitions
Add-on application software packages
Home directory for the root user
Essential system binaries
Temporary files
Secondary hierarchy
Variable data

Tree 3.1

Each directory listed above is specified in detail in separate subsections below. /usr and /var each have a complete section in this document due to the complexity of those directories.

The operating system kernel image should be located in either / or /boot. Additional information on kernel placement can be found in the section regarding /boot, below.


Previous: The Filesystem
Next: /bin : Essential user command binaries (for use by all users)
Up: Table of Contents

Translated by troff2html 1.5 on 16 November 1997 by quinlan