.\" Copyright (c) 1990 The Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)hier.7 6.3 (Berkeley) 7/23/91
.Nd layout of filesystems
A sketch of the filesystem hierarchy.
.Bl -tag -width "/stand/"
root directory of the filesystem
user utilities fundamental to both single-user and multi-user environments
block and character device files
.Bl -tag -width MAKEDEV -compact
script for creating device files;
system configuration files and scripts
.Bl -tag -width "disklabels/" -compact
local timezone information;
configuration files for the kerberos version IV;
mtree configuration files;
named configuration files;
empty directory commonly used by
system administrators as a temporary mount point
system programs and administration utilities
fundamental to both single-user and multi-user environments
programs used in a standalone environment
temporary files, usually a
memory-based filesystem (the contents
of /tmp are usually NOT preserved across a system reboot)
contains the majority of user utilities and applications
.Bl -tag -width "libdata/" -compact
common utilities, programming tools, and applications
large packages contributed to Berkeley by outside parties
useful and semi-frivolous programs
.Bl -tag -width "kerberosIV/" -compact
C include files for X11 window system
C include files for Internet service protocols
C include files for kerberos authentication package;
machine specific C include files
misc network C include files
C include files for IMP protocols;
C include files for Internet standard protocols;
C include files for ISO standard protocols;
C include files for XNS standard protocols;
C include files for NFS (Network File System)
C include files for Berkeley service protocols
system C include files (kernel data structures)
C include files for UFS (The U-word File System)
.Bl -tag -width Fl -compact
UUCP configuration files (historically placed; to be moved)
system daemons & system utilities (executed by other programs)
local executables, libraries, etc.
architecture-specific target tree produced by building the /usr/src tree
programs from past lives of BSD which may disappear in future
system daemons & system utilities (executed by users)
architecture-independent ascii text files
.Bl -tag -width "calendar/" -compact
a variety of pre-fab calendar files;
.Bl -tag -width Fl -compact
words from Webster's 2nd International
src for most of the printed
ascii text files used by various games
macros for use with the me macro package
misc system-wide ascii text files
.Bl -tag -width Fl -compact
terminal characteristics database;
macros for use with the ms macro package
example . (dot) files for new accounts
tab description files for a variety of terminals; used in
timezone configuration information;
BSD and/or local source files
.Bl -tag -width "kerberosIV/" -compact
src for files in /usr/contrib
src for files in /usr/games
src for files in /usr/include
src for kerberos version IV
src for files in /usr/lib
src for files in /usr/libexec
src for files in /usr/local
src for files in /usr/old
src for programming tools in /usr/bin
src for files in /usr/share
src for files in /usr/bin
src for files in /usr/sbin
multi-purpose log, temporary, transient, and spool files
.Bl -tag -width "preserve/" -compact
.Bl -tag -width Fl -compact
execution accounting file;
timed command scheduling files;
misc. automatically generated system-specific database files
misc. game status and log files
.Bl -tag -width Fl -compact
temporary home of files preserved after an accidental death
filesystem quota information files
system information files describing various info about
system since it was booted
.Bl -tag -width Fl -compact
database of current users;
misc. printer and mail system spooling directories
.Bl -tag -width Fl -compact
commonly ~ftp; the anonymous ftp root directory
line printer spooling directories
secretmail spool directory;
commonly ~uucp; public uucp temporary directory
temporary files that are kept between system reboots
pure kernel executable (the operating system loaded into memory