The slash /
character alone denotes the root of the filesystem tree.
Default mount point for removable devices, such as USB sticks, media players, etc. By common sense, the directory itself, whose subdirectories are mountpoints, is on the root partition itself.
Stands for mount. Empty directory commonly used by system administrators as a temporary mount point. By common sense, the directory itself, whose subdirectories are mountpoints, is on the root partition itself.
Server data (data for services provided by system).
Stores the needed libraries and data files for programs stored within /usr
or elsewhere.
Contains system log files.
The place where the uncompiled source code of some programs is.
The /var/tmp
directory is a place for temporary files which should be preserved between system reboots.
Stands for and contains certain fundamental utilities, such as ls
or cp
, that are needed to mount /usr
, when that is a separate filesystem, or to run in one-user (administrative) mode when /usr
cannot be mounted. In System V.4, this is a symlink to /usr/bin
. Otherwise, it needs to be on the root filesystem itself.
Contains all the files needed for successful booting process. In , this was one file rather than a directory. Nowadays usually on the root filesystem itself, unless the system, bootloader etc. require otherwise.
Stands for devices. Contains of peripheral devices and . See also: . Needs to be on the root filesystem itself.
Contains system-wide configuration files and system databases; the name stands for . Originally also contained "dangerous maintenance utilities" such as init
, but these have typically been moved to /sbin
or elsewhere. Needs to be on the root filesystem itself.
Contains user home directories on Linux and some other systems. In the original version of Unix, home directories were in /usr
instead. Some systems use or have used different locations still: has home directories in /Users
, older versions of BSD put them in /u
, has /usr/home
.
Originally essential libraries: libraries, but not ones. On modern systems, it contains the shared libraries needed by programs in /bin
, and possibly or . Linux distributions may have variants /lib32
and /lib64
for multi-architecture support.
Contains locally installed software. Originated in , which has a that installs software to this directory (one subdirectory per package).
virtual showing information about as files.
The home directory for the root - that is, the system administrator. This account's home directory is usually on the initial filesystem, and hence not in /home (which may be a mount point for another filesystem) in case specific maintenance needs to be performed, during which other filesystems are not available. Such a case could occur, for example, if a hard disk drive suffers physical failures and cannot be properly mounted. By convention, this directory is on the root partition itself; in any case, it is not a link to /home/root
or any such thing.
Stands for "" and contains fundamental utilities, such as init
, usually needed to start, maintain and recover the system. Needs to be on the root partition itself.
In some , contains a virtual , containing information related to hardware and the operating system. On BSD systems, commonly a symlink to the kernel sources in /usr/src/sys
.
A place for temporary files not expected to survive a reboot. Many systems clear this directory upon startup or use to implement it.
The Unix in Research Unix and . With the addition of support to , this got renamed /vmunix
.
The "user file system": originally the directory holding user home directories, but already by the Third Edition of , ca. 1973, reused to split the operating system's programs over two disks (one of them a 256K fixed-head drive) so that basic commands would either appear in /bin
or /usr/bin
. It now holds executables, libraries, and shared resources that are not system critical, like the , , , etc. In older Unix systems, user home directories might still appear in /usr
alongside directories containing programs, although by 1984 this depended on local customs.
Stores the development headers used throughout the system. are mostly used by the #include
directive in language, which historically is how the name of this directory was chosen.
Holds programs meant to be executed by other programs rather than by users directly. E.g., the executable may be found in this directory. Not present in the FHS until 2011; Linux distributions have traditionally moved the contents of this directory into /usr/lib
, where they also resided in 4.3BSD.
Resembles /usr
in structure, but its subdirectories are used for additions not part of the operating system distribution, such as custom programs or files from a . Usually has subdirectories such as /usr/local/lib
or /usr/local/bin
.
Architecture-independent program data. On Linux and modern BSD derivatives, this directory has subdirectories such as man
for , that used to appear directly under /usr
in older versions.
Stands for variable. A place for files that might change frequently - especially in size, for example e-mail sent to users on the system, or process-ID .
The place where all incoming mail is stored. Users (other than root
) can access their own mail only. Often, this directory is a to /var/spool/mail
.
directory. Contains print jobs, mail spools and other queued tasks.