1 .\" Copyright (c) 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)hier.7 8.1 (Berkeley) 6/5/93
36 .Nd layout of file systems
38 A sketch of the file system hierarchy.
39 .Bl -tag -width "/libexec/"
41 root directory of the file system
43 user utilities fundamental to both single-user and multi-user environments
45 programs and configuration files used during operating system bootstrap
47 .Bl -tag -width "defaults/" -compact
49 default bootstrapping configuration files; see
52 Compiled flattened device tree (FDT) files; see
57 Mount point for EFI System Partition (ESP) on UEFI systems.
59 loadable kernel modules containing binary firmware for hardware that needs
60 firmware downloaded to it to function
62 pure kernel executable (the operating system loaded into memory
63 at boot time) and kernel modules
65 third-party loadable kernel modules;
69 Compiled flattened device tree (FDT) overlays; see
78 default mount point for CD-ROM drives
86 device special files managed by
89 .Bl -tag -width "defaults/" -compact
91 file descriptor files;
96 system configuration files and scripts
98 .Bl -tag -width "defaults/" -compact
100 default system configuration files;
104 bluetooth configuration files
106 local timezone information;
110 Sendmail control files
112 mtree configuration files;
116 configuration files for the Pluggable Authentication Modules (PAM)
119 scripts that are run daily, weekly, and monthly, via
124 system and daemon startup/control scripts;
128 OpenBSM audit configuration files;
132 ppp configuration files;
136 OpenSSH configuration files;
140 OpenSSL configuration files
143 critical system libraries needed for binaries in
148 .Bl -tag -width "defaults/" -compact
152 Capsicum support libraries
154 class-specific libraries for the
158 vendor-specific libraries to extend the
163 critical system utilities needed for binaries in
168 contains subdirectories to be used as mount points
169 for removable media such as CDs, USB drives, and
172 empty directory commonly used by
173 system administrators as a temporary mount point
175 automounted NFS shares;
183 statically linked programs for emergency recovery;
187 root's HOME directory
189 system programs and administration utilities
190 fundamental to both single-user and multi-user environments
192 temporary files that are not guaranteed to persist across system reboots
194 contains the majority of user utilities and applications
196 .Bl -tag -width "defaults/" -compact
198 common utilities, programming tools, and applications
200 files needed to support binary compatibility with other operating systems,
203 standard C include files
205 .Bl -tag -width "kerberos5/" -compact
207 C include files for Internet service protocols
209 C include files for the SNMP daemon
213 C include files for the Common Access Methods Layer
214 .Bl -tag -width "kerberos5/" -compact
216 SCSI device on top of CAM
219 C include files for programming various
222 .Bl -tag -width "kerberos5/" -compact
224 various header files describing driver- and bus-independent
227 Open Firmware support
243 .Bl -tag -width "kerberos5/" -compact
245 per-process file descriptors file system
249 C include files for NFS (Network File System) version 2, 3 and 4
263 .Bl -tag -width "kerberos5/" -compact
278 C include files for libmilter,
283 machine-specific C include files
285 miscellaneous network C include files
286 .Bl -tag -width Fl -compact
288 C include files for alternate queueing
291 C include files for 802.11 wireless networking;
295 C include files for Internet standard protocols;
299 C include files for Internet protocol version 6;
303 kernel key-management service;
309 C include files for NFS (Network File System) version 2 and 3 (legacy)
311 OpenSSL (Cryptography/SSL toolkit) headers
313 C include files for Berkeley service protocols
315 remote procedure calls;
319 definition of RPC service structures; see
325 system C include files (kernel data structures)
330 .\" .Bl -tag -width "kerberos5/" -compact
337 C include files for UFS (The U-word File System)
338 .Bl -tag -width "kerberos5/" -compact
355 .Bl -tag -width Fl -compact
357 a.out archive libraries
359 shared libraries for compatibility
360 .Bl -tag -width Fl -compact
362 a.out backward compatibility libraries
365 standalone debug data for the kernel and base system libraries and binaries
367 DTrace library scripts
369 OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines
373 miscellaneous utility data files
375 .Bl -tag -width Fl -compact
386 system daemons & system utilities (executed by other programs)
388 .Bl -tag -width Fl -compact
390 utilities to manipulate a.out executables
392 utilities to manipulate ELF executables
394 utilities and filters for LP print system;
411 local executables, libraries, etc.
412 Also used as the default destination for the
417 the general layout sketched out by
425 .Pa share/doc/<port>/ Ns Pc ,
431 architecture-specific target tree produced by building the
440 system daemons & system utilities (executed by users)
442 architecture-independent files
444 .Bl -tag -width Fl -compact
446 a variety of pre-fab calendar files;
453 .Bl -tag -width Fl -compact
456 terms, proper names, and jargon
458 words from Webster's 2nd International
461 miscellaneous documentation;
462 source for most of the printed
468 .Bl -tag -width Fl -compact
470 Frequently Asked Questions
472 implementation notes for IPv6
474 Spanish translations of documents in /usr/share/doc
479 Japanese translations of documents in /usr/share/doc
481 License files for vendor supplied firmware files
483 HTML documents pertaining to ncurses;
487 HTML documents pertaining to the Network Time Protocol
489 Russian translations of documents in /usr/share/doc
494 Chinese translations of documents in /usr/share/doc
497 various examples for users and programmers
499 firmware images loaded by userland programs
501 ASCII text files used by various games
503 known trusted and revoked keys.
504 .Bl -tag -width Fl -compact
518 miscellaneous system-wide ASCII text files
519 .Bl -tag -width Fl -compact
523 terminal characteristics database;
532 national language support files
534 data files for security policies such as
542 (dot) files for new accounts
544 MIBs, example files and tree definitions for the SNMP daemon.
545 .Bl -tag -width Fl -compact
547 tree definition files for use with
553 files used by syscons;
556 .Bl -tag -width Fl -compact
564 console keyboard maps;
573 tab description files for a variety of terminals; used in
578 localization support and utilities for
584 .Bl -tag -width Fl -compact
592 console keyboard maps;
598 .\" console screen maps
601 timezone configuration information;
608 third-party, and/or local source files
610 .Bl -tag -width "kerberos5/" -compact
612 source code for files in /bin
614 utilities covered by the Common Development and Distribution License
616 source code for contributed software
618 source code for contributed cryptography software
620 source code for files in
623 utilities covered by the GNU General Public License
625 source code for files in
628 build infrastructure for Kerberos version 5
630 source code for files in
635 source code for files in
638 files required to produce a
642 source code for files in
645 source code for files in
648 build directory for files in
654 boot loader source code
657 .Bl -tag -width Fl -compact
659 AMD64 architecture support
661 ARM architecture support
663 ARMv8 architecture support
669 CDDL-licensed optional sources, including ZFS
680 i386 (32 bit) architecture support
682 main part of the kernel
684 MIPS architecture support
702 PowerPC/POWER architecture support
704 RISC-V architecture support
710 SPARC64 architecture support
716 code shared by AMD64 and i386 architectures
719 support for experimental DIRDEPS_BUILD
721 source code for files in
724 tools used for maintenance and testing of
727 source code for files in
730 source code for files in
743 multi-purpose log, temporary, transient, and spool files
745 .Bl -tag -width "defaults/" -compact
747 system accounting files
749 .Bl -tag -width Fl -compact
751 execution accounting file;
757 timed command scheduling files;
761 .Bl -tag -width Fl -compact
763 directory containing job files
765 directory containing output spool files
769 miscellaneous backup files
771 miscellaneous cached files
773 .Bl -tag -width Fl -compact
780 default directory to store kernel crash dumps; see
789 .Bl -tag -width Fl -compact
797 miscellaneous automatically generated system-specific database files
799 empty directory for use by programs that need a specifically empty directory.
802 for privilege separation.
804 miscellaneous game status and score files
806 Kerberos server databases; see
809 miscellaneous system log files
811 .Bl -tag -width Fl -compact
825 system messages database;
829 temporary home of files preserved after an accidental death
834 file system quota information files
836 system information files describing various info about
837 system since it was booted
839 .Bl -tag -width Fl -compact
843 group for command connection sockets; see
846 database of current users;
859 miscellaneous printer and mail system spooling directories
861 .Bl -tag -width Fl -compact
863 undelivered submission mail queue;
867 commonly ~ftp; the anonymous ftp root directory
869 undelivered mail queue;
873 line printer spooling directories
877 temporary files that are kept between system reboots
879 .Bl -tag -width Fl -compact
881 the directory where recovery files are stored
889 This manual page documents the default
891 file system layout, but
892 the actual hierarchy on a given system is defined at the system
893 administrator's discretion.
894 A well-maintained installation will include a customized version of
911 manual page appeared in