1 .\" $OpenBSD: hier.7,v 1.107 2013/06/10 12:42:05 jmc Exp $
2 .\" $NetBSD: hier.7,v 1.7 1994/11/30 19:07:10 jtc Exp $
4 .\" Copyright (c) 1990, 1993
5 .\" The Regents of the University of California. All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" @(#)hier.7 8.1 (Berkeley) 6/5/93
33 .Dd $Mdocdate: June 10 2013 $
38 .Nd layout of filesystems
40 A sketch of the filesystem hierarchy.
41 .Bl -tag -width "/altroot/"
45 Alternate (backup) location for the root
51 User utilities fundamental to both single and multi-user environments.
52 These programs are statically compiled and therefore do not depend on any
53 system libraries to run.
55 Pure kernel executable
56 (the operating system loaded into memory at boot-time).
58 Pure kernel executable
59 for multiprocessor machines.
62 The built-in RAM disk contains utilities which can be run
63 without an external file system, so this kernel is useful
64 for limited system maintenance too.
66 Pure kernel executable
67 for single processor machines.
69 Block and character device files.
71 .Bl -tag -width MAKEDEV -compact
73 Script for creating device files (see
76 File descriptor files (see
80 Base directory for alternate areas searched first when system call
81 emulation is in effect.
83 System configuration files and scripts.
85 .Bl -tag -width "raddb/servers/" -compact
87 Local time zone information (see
90 Configuration files for the X11 window system.
92 Contains map files for
95 Configuration files for the authenticating gateway user shell (see
98 Backup disklabels (see
101 Firmware files for various devices.
103 Configuration files for X11 window system fonts.
105 Scripts for the hotplug daemon,
108 Configuration files for
111 Configuration files for
114 Configuration files for the Kerberos version V subsystem (see
117 Certificates and schema definition files for
120 System mail configuration files.
134 List of radius servers and their associated shared secrets for
138 start/stop scripts and subroutines for
143 (dot) files for new accounts.
145 One-time password user database for
148 Configuration files for
151 Configuration files for
156 OpenSSL configuration files (see
164 Default location for user home directories.
166 Empty directory commonly used by
167 system administrators as a temporary mount point.
169 Default home directory for the superuser.
171 System programs and administration utilities
172 fundamental to both single and multi-user environments.
173 These programs are statically compiled and therefore do not depend on any
174 system libraries to run.
176 Programs used in a stand-alone environment.
178 Temporary files that are
180 preserved between system reboots.
181 Periodically cleaned by
184 Contains the majority of user utilities and applications.
186 .Bl -tag -width "libdata/" -compact
188 Files required for the X11 window system.
190 .Bl -tag -width "include/" -compact
194 X11-specific C include files.
196 X11 archive libraries.
198 .Bl -tag -width "pkgconfig/" -compact
200 Default configuration files for X11 and companion applications.
202 Various libraries and drivers for the X11 window system.
207 Data files used by the X server.
213 Architecture independent data files.
217 Common utilities, programming tools, and applications.
219 Useful and semi-frivolous programs.
221 Standard C include files.
223 .Bl -tag -width "kerberosV/" -compact
225 C include files for the altq subsystem (see
228 C include files for Internet service protocols.
230 C include files for the cryptographic libraries.
232 C include files for the kernel debugger (see
235 Device-specific C include files.
237 Include files for the GNU C++ compiler.
239 C include files for the ISO standard file systems (currently only cd9660).
241 C include files for the KerberosV authentication subsystem (see
244 C include files for the
248 Machine specific C include files.
250 C include files for miscellaneous file systems.
252 Miscellaneous network C include files.
254 C include files for 802.11 wireless networking.
256 C include files for the Bluetooth protocol.
258 C include files for Internet standard protocols (see
261 C include files for Internet protocol version 6 (see
264 C include files for the MPLS protocol.
266 C include files for native mode ATM access.
268 C include files for NFS (Network File System).
270 C include files for GNU Objective-C.
272 C include files for the OpenSSL library (see
275 C include files for Berkeley service protocols.
277 C include files for the
281 C include files for remote procedure calling (see
284 C include files for rpcsvc.
286 SCSI-specific C include files.
288 System C include files (kernel data structures).
290 C include files for UFS (the U-word File System).
292 C include files for the virtual memory interface.
294 C include files for the XFS file system.
301 for a description of library types.
303 Miscellaneous utility data files.
305 .Bl -tag -width "ldscripts/" -compact
307 Placeholder for user contributed
318 System daemons and utilities (executed by other programs).
320 .Bl -tag -width "cvs/contrib/" -compact
322 Login scripts used to authenticate users (for BSD authentication).
328 Contains the lpf filter for
335 Binaries to be run by
343 Loadable kernel modules.
345 Local executables, libraries, etc.
347 Boot-related executables.
349 Architecture specific target tree produced by building the
355 ports collection (see
358 System daemons and utilities (executed by users).
360 Architecture independent data files.
362 .Bl -tag -width "calendar/" -compact
364 Variety of pre-fab calendar files (see
372 .Bl -tag -width propernames -compact
374 Spellings preferred in American usage.
376 Spellings preferred in British usage.
378 List of common words.
380 List of proper names.
382 Forms that would otherwise be derivable by
384 from words in the other files in
385 .Pa /usr/share/dict ,
386 but should not be accepted.
388 Words from Webster's 2nd International.
390 Additional words from Webster's.
400 Miscellaneous documentation.
402 .Bl -tag -width html/ -compact
412 ASCII text files used by various games.
414 Texinfo source files.
416 Example source code implementing several lkm module types (see
419 Locales for multi-language support.
423 .Bl -tag -width man3p/ -compact
425 General commands (tools and utilities).
427 System calls and error numbers.
432 programmers' reference guide.
434 Special files and hardware support.
442 System maintenance and operation commands.
448 Miscellaneous system-wide ASCII text files.
450 .Bl -tag -width terminfo.db -compact
452 Terminal characteristics database (see
455 Hash database file containing terminal descriptions (see
458 Terminal information database.
460 Additional i386 console fonts.
469 National Language Support (NLS) catalogs.
477 .Bl -tag -width mibs/ -compact
479 Management Information Base (MIB) definitions.
483 Tab description files for a variety of terminals; used in
484 the termcap file (see
490 Catalog files for the
494 Time zone configuration information (see
499 BSD and/or local source files.
501 .Bl -tag -width "kerberosV/" -compact
506 Source for making distribution sets.
514 Source for files under GPL or other restrictive licenses.
519 Source for Kerberos version V.
545 Source for the X11 window system.
548 Architecture specific target tree produced by building the
553 Multi-purpose log, temporary, transient, and spool files.
555 .Bl -tag -width "preserve/" -compact
557 System accounting files.
559 .Bl -tag -width Fl -compact
561 Execution accounting file (see
571 Miscellaneous backup files.
573 Data cached for programs.
575 Crash dumps written by
578 Spools and configuration files for
583 .Bl -tag -width Fl -compact
594 Miscellaneous, automatically generated system-specific database files.
600 Miscellaneous game status and log files.
602 Miscellaneous system log files.
604 .Bl -tag -width Fl -compact
606 Login/logout log (see
619 Database and zone files for
622 Filesystem quota information files.
624 System information files describing various info about the
625 system since it was booted.
627 .Bl -tag -width Fl -compact
629 Database of current users (see
644 Miscellaneous printer and mail system spooling directories.
646 .Bl -tag -width "clientmqueue/" -compact
648 Mail messages waiting to be processed by the sendmail clientmqueue helper
652 Commonly ~ftp; the anonymous ftp root directory.
654 Lock files for utilities such as
660 Undelivered mail queue (see
663 Line printer spooling directories.
671 Commonly ~uucp; public uucp temporary directory.
675 Temporary files that are kept between system reboots.
676 Periodically cleaned by
697 manual page appeared in