xref: /freebsd/share/man/man7/hier.7 (revision 23833df4831a6f41aa39e952fba524edfb8cec6d)
1.\" Copyright (c) 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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.
15.\"
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
26.\" SUCH DAMAGE.
27.\"
28.\"	@(#)hier.7	8.1 (Berkeley) 6/5/93
29.\" $FreeBSD$
30.\"
31.Dd June 10, 2017
32.Dt HIER 7
33.Os
34.Sh NAME
35.Nm hier
36.Nd layout of file systems
37.Sh DESCRIPTION
38A sketch of the file system hierarchy.
39.Bl -tag -width "/libexec/"
40.It Pa /
41root directory of the file system
42.It Pa /bin/
43user utilities fundamental to both single-user and multi-user environments
44.It Pa /boot/
45programs and configuration files used during operating system bootstrap
46.Pp
47.Bl -tag -width "defaults/" -compact
48.It Pa defaults/
49default bootstrapping configuration files; see
50.Xr loader.conf 5
51.It Pa dtb/
52Compiled flattened device tree (FDT) files; see
53.Xr fdt 4
54and
55.Xr dtc 1
56.It Pa firmware/
57loadable kernel modules containing binary firmware for hardware that needs
58firmware downloaded to it to function
59.It Pa kernel/
60pure kernel executable (the operating system loaded into memory
61at boot time) and kernel modules
62.It Pa modules/
63third-party loadable kernel modules;
64see
65.Xr kldstat 8
66.It Pa zfs/
67.Xr zfs 8
68zpool cache files
69.El
70.It Pa /cdrom/
71default mount point for CD-ROM drives
72.It Pa /compat/
73normally a link to
74.Pa /usr/compat .
75If not, then the
76.Pa /usr/compat
77comments apply
78.It Pa /dev/
79device special files managed by
80.Xr devfs 5
81.Pp
82.Bl -tag -width "net/" -compact
83.It Pa fd/
84file descriptor files;
85see
86.Xr \&fd 4
87.El
88.It Pa /etc/
89system configuration files and scripts
90.Pp
91.Bl -tag -width "bluetooth/" -compact
92.It Pa defaults/
93default system configuration files;
94see
95.Xr rc 8
96.It Pa bluetooth/
97bluetooth configuration files
98.It Pa localtime
99local timezone information;
100see
101.Xr ctime 3
102.It Pa mail/
103Sendmail control files
104.It Pa mtree/
105mtree configuration files;
106see
107.Xr mtree 8
108.It Pa pam.d/
109configuration files for the Pluggable Authentication Modules (PAM)
110library
111.It Pa periodic/
112scripts that are run daily, weekly, and monthly, via
113.Xr cron 8 ;
114see
115.Xr periodic 8
116.It Pa rc.d/
117system and daemon startup/control scripts;
118see
119.Xr rc 8
120.It Pa security/
121OpenBSM audit configuration files;
122see
123.Xr audit 8
124.It Pa ppp/
125ppp configuration files;
126see
127.Xr ppp 8
128.It Pa ssh/
129OpenSSH configuration files;
130see
131.Xr ssh 1
132.It Pa ssl/
133OpenSSL configuration files
134.El
135.It Pa /lib/
136critical system libraries needed for binaries in
137.Pa /bin
138and
139.Pa /sbin
140.Pp
141.Bl -tag -width "geom/" -compact
142.It Pa geom/
143class-specific libraries for the
144.Xr geom 8
145utility
146.El
147.It Pa /libexec/
148critical system utilities needed for binaries in
149.Pa /bin
150and
151.Pa /sbin
152.It Pa /media/
153contains subdirectories to be used as mount points
154for removable media such as CDs, USB drives, and
155floppy disks
156.It Pa /mnt/
157empty directory commonly used by
158system administrators as a temporary mount point
159.It Pa /net/
160automounted NFS shares;
161see
162.Xr auto_master 5
163.It Pa /proc/
164process file system;
165see
166.Xr procfs 5
167.It Pa /rescue/
168statically linked programs for emergency recovery;
169see
170.Xr rescue 8
171.It Pa /root/
172root's HOME directory
173.It Pa /sbin/
174system programs and administration utilities
175fundamental to both single-user and multi-user environments
176.It Pa /tmp/
177temporary files that are not guaranteed to persist across system reboots
178.It Pa /usr/
179contains the majority of user utilities and applications
180.Pp
181.Bl -tag -width "libdata/" -compact
182.It Pa bin/
183common utilities, programming tools, and applications
184.It Pa compat/
185files needed to support binary compatibility with other operating systems,
186such as Linux
187.It Pa include/
188standard C include files
189.Pp
190.Bl -tag -width "kerberos5/" -compact
191.It Pa arpa/
192C include files for Internet service protocols
193.It Pa bsnmp/
194C include files for the SNMP daemon
195.It Pa c++/
196C++ include files
197.It Pa cam/
198C include files for the Common Access Methods Layer
199.Bl -tag -width "kerberos5/" -compact
200.It Pa scsi/
201SCSI device on top of CAM
202.El
203.It Pa dev/
204C include files for programming various
205.Fx
206devices
207.Bl -tag -width "kerberos5/" -compact
208.It Pa ic/
209various header files describing driver- and bus-independent
210hardware circuits
211.It Pa ofw/
212Open Firmware support
213.It Pa pbio/
2148255 PPI cards;
215see
216.Xr pbio 4
217.It Pa ppbus/
218parallel port bus;
219see
220.Xr ppbus 4
221.It Pa usb/
222USB subsystem
223.It Pa wi/
224.Xr wi 4
225WaveLAN driver
226.El
227.It Pa fs/
228.Bl -tag -width "kerberos5/" -compact
229.It Pa fdescfs/
230per-process file descriptors file system
231.It Pa msdosfs/
232MS-DOS file system
233.It Pa nfs/
234C include files for NFS (Network File System) version 2, 3 and 4
235.It Pa nullfs/
236loopback file system
237.It Pa procfs/
238process file system
239.It Pa smbfs/
240SMB/CIFS file system
241.It Pa udf/
242UDF file system
243.It Pa unionfs
244union file system
245.El
246.It Pa geom/
247GEOM framework
248.Bl -tag -width "kerberos5/" -compact
249.It Pa concat/
250CONCAT GEOM class
251.It Pa gate/
252GATE GEOM class
253.It Pa mirror/
254MIRROR GEOM class
255.It Pa nop/
256NOP GEOM class
257.It Pa raid3/
258RAID3 GEOM class
259.It Pa stripe/
260STRIPE GEOM class
261.El
262.Pp
263.It Pa libmilter/
264C include files for libmilter,
265the
266.Xr sendmail 8
267mail filter API
268.It Pa machine/
269machine-specific C include files
270.It Pa net/
271miscellaneous network C include files
272.Bl -tag -width "altq/" -compact
273.It Pa altq/
274C include files for alternate queueing
275.El
276.It Pa net80211/
277C include files for 802.11 wireless networking;
278see
279.Xr net80211 4
280.It Pa netinet/
281C include files for Internet standard protocols;
282see
283.Xr inet 4
284.It Pa netinet6/
285C include files for Internet protocol version 6;
286see
287.Xr inet6 4
288.It Pa netipsec/
289kernel key-management service;
290see
291.Xr ipsec 4
292.It Pa netsmb/
293SMB/CIFS requester
294.It Pa nfs/
295C include files for NFS (Network File System) version 2 and 3 (legacy)
296.It Pa openssl/
297OpenSSL (Cryptography/SSL toolkit) headers
298.It Pa protocols/
299C include files for Berkeley service protocols
300.It Pa rpc/
301remote procedure calls;
302see
303.Xr rpc 3
304.It Pa rpcsvc/
305definition of RPC service structures; see
306.Xr rpc 3
307.It Pa security/
308PAM; see
309.Xr pam 8
310.It Pa sys/
311system C include files (kernel data structures)
312.\" .It Pa tcl/
313.\" Tcl language;
314.\" see
315.\" .Xr Tcl n
316.\" .Bl -tag -width "kerberos5/" -compact
317.\" .It Pa generic/
318.\" ???
319.\" .It Pa unix/
320.\" ???
321.\" .El
322.It Pa ufs/
323C include files for UFS (The U-word File System)
324.Bl -tag -width "kerberos5/" -compact
325.It Pa ffs/
326Fast file system
327.It Pa ufs/
328UFS file system
329.El
330.It Pa vm/
331virtual memory;
332see
333.Xr vmstat 8
334.El
335.Pp
336.It Pa lib/
337shared and archive
338.Xr ar 1 Ns -type
339libraries
340.Bl -tag -width Fl -compact
341.It Pa aout/
342a.out archive libraries
343.It Pa compat/
344shared libraries for compatibility
345.Bl -tag -width Fl -compact
346.It Pa aout/
347a.out backward compatibility libraries
348.El
349.It Pa debug/
350standalone debug data for the kernel and base system libraries and binaries
351.It Pa dtrace/
352DTrace library scripts
353.It Pa engines/
354OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines
355.El
356.Pp
357.It Pa libdata/
358miscellaneous utility data files
359.Bl -tag -width Fl -compact
360.It Pa gcc/
361.Xr gcc 1
362configuration data
363.It Pa ldscripts/
364linker scripts;
365see
366.Xr ld 1
367.It Pa lint/
368various prebuilt lint libraries;
369see
370.Xr lint 1
371.El
372.Pp
373.It Pa libexec/
374system daemons & system utilities (executed by other programs)
375.Bl -tag -width Fl -compact
376.It Pa aout/
377utilities to manipulate a.out executables
378.It Pa elf/
379utilities to manipulate ELF executables
380.It Pa lpr/
381utilities and filters for LP print system;
382see
383.Xr lpr 1
384.It Pa sendmail/
385the
386.Xr sendmail 8
387binary;
388see
389.Xr mailwrapper 8
390.It Pa sm.bin/
391restricted shell for
392.Xr sendmail 8 ;
393see
394.Xr smrsh 8
395.El
396.Pp
397.It Pa local/
398local executables, libraries, etc.
399Also used as the default destination for the
400.Xr ports 7
401framework.
402Within
403.Pa local/ ,
404the general layout sketched out by
405.Nm
406for
407.Pa /usr
408should be used.
409Exceptions are the
410.Pa man
411directory
412.Po directly under
413.Pa local/
414rather than under
415.Pa local/share/ Ns Pc ,
416ports documentation
417.Po in
418.Pa share/doc/<port>/ Ns Pc ,
419and
420.Pa /usr/local/etc
421.Po mimics
422.Pa /etc Ns Pc .
423.It Pa obj/
424architecture-specific target tree produced by building the
425.Pa /usr/src
426tree
427.It Pa ports/
428.Xr ports 7 ,
429the
430.Fx
431ports collection.
432.It Pa sbin/
433system daemons & system utilities (executed by users)
434.It Pa share/
435architecture-independent files
436.Pp
437.Bl -tag -width "calendar/" -compact
438.It Pa calendar/
439a variety of pre-fab calendar files;
440see
441.Xr calendar 1
442.It Pa dict/
443word lists;
444see
445.Xr look 1
446.Pp
447.Bl -tag -width Fl -compact
448.It Pa freebsd
449.Fx Ns -specific
450terms, proper names, and jargon
451.It Pa web2
452words from Webster's 2nd International
453.El
454.Pp
455.It Pa doc/
456miscellaneous documentation;
457source for most of the printed
458.Bx
459manuals (available
460from the
461.Tn USENIX
462association)
463.Bl -tag -width Fl -compact
464.It Pa FAQ/
465Frequently Asked Questions
466.It Pa IPv6/
467implementation notes for IPv6
468.It Pa es/
469Spanish translations of documents in /usr/share/doc
470.It Pa handbook/
471.Fx
472Handbook
473.It Pa ja/
474Japanese translations of documents in /usr/share/doc
475.It Pa legal/
476License files for vendor supplied firmwares
477.It Pa ncurses/
478HTML documents pertaining to ncurses;
479see
480.Xr ncurses 3
481.It Pa ntp/
482HTML documents pertaining to the Network Time Protocol
483.It Pa ru/
484Russian translations of documents in /usr/share/doc
485.It Pa tutorials/
486.Fx
487tutorials
488.It Pa zh/
489Chinese translations of documents in /usr/share/doc
490.El
491.Pp
492.It Pa examples/
493various examples for users and programmers
494.It Pa firmware/
495firmware images loaded by userland programs
496.It Pa games/
497ASCII text files used by various games
498.It Pa keys/
499known trusted and revoked keys.
500.Bl -tag -width "pkg/" -compact
501.It Pa pkg/
502fingerprints for
503.Xr pkg 7
504and
505.Xr pkg 8
506.El
507.Pp
508.It Pa locale/
509localization files;
510see
511.Xr setlocale 3
512.It Pa man/
513manual pages
514.It Pa misc/
515miscellaneous system-wide ASCII text files
516.Bl -tag -width Fl -compact
517.It Pa fonts/
518???
519.It Pa termcap
520terminal characteristics database;
521see
522.Xr termcap 5
523.El
524.It Pa mk/
525templates for make;
526see
527.Xr make 1
528.It Pa nls/
529national language support files;
530see
531.Xr mklocale 1
532.It Pa security/
533data files for security policies such as
534.Xr mac_lomac 4
535.It Pa sendmail/
536.Xr sendmail 8
537configuration files
538.It Pa skel/
539example
540.Pa .\&
541(dot) files for new accounts
542.It Pa snmp/
543MIBs, example files and tree definitions for the SNMP daemon.
544.Bl -tag -width Fl -compact
545.It Pa defs/
546tree definition files for use with
547.Xr gensnmptree 1
548.It Pa mibs/
549MIB files
550.El
551.It Pa syscons/
552files used by syscons;
553see
554.Xr syscons 4
555.Bl -tag -width "scrnmaps/" -compact
556.It Pa fonts/
557console fonts;
558see
559.Xr vidcontrol 1
560and
561.Xr vidfont 1
562.It Pa keymaps/
563console keyboard maps;
564see
565.Xr kbdcontrol 1
566and
567.Xr kbdmap 1
568.It Pa scrnmaps/
569console screen maps
570.El
571.It Pa tabset/
572tab description files for a variety of terminals; used in
573the termcap file;
574see
575.Xr termcap 5
576.It Pa vi/
577localization support and utilities for
578.Xr vi 1
579.It Pa vt/
580files used by vt;
581see
582.Xr vt 4
583.Bl -tag -width "scrnmaps/" -compact
584.It Pa fonts/
585console fonts;
586see
587.Xr vidcontrol 1
588and
589.Xr vidfont 1
590.It Pa keymaps/
591console keyboard maps;
592see
593.Xr kbdcontrol 1
594and
595.Xr kbdmap 1
596.\" .It Pa scrnmaps/
597.\" console screen maps
598.El
599.It Pa zoneinfo/
600timezone configuration information;
601see
602.Xr tzfile 5
603.El
604.It Pa src/
605.Bx ,
606third-party, and/or local source files
607.Pp
608.Bl -tag -width "kerberos5/" -compact
609.It Pa bin/
610source code for files in /bin
611.It Pa cddl/
612utilities covered by the Common Development and Distribution License
613.It Pa contrib/
614source code for contributed software
615.It Pa crypto/
616source code for contributed cryptography software
617.It Pa etc/
618source code for files in
619.Pa /etc
620.It Pa gnu/
621utilities covered by the GNU General Public License
622.It Pa include/
623source code for files in
624.Pa /usr/include
625.It Pa kerberos5/
626build infrastructure for kerberos version 5
627.It Pa lib/
628source code for files in
629.Pa /lib
630and
631.Pa /usr/lib
632.It Pa libexec/
633source code for files in
634.Pa /usr/libexec
635.It Pa release/
636files required to produce a
637.Fx
638release
639.It Pa rescue/
640source code for files in
641.Pa /rescue
642.It Pa sbin/
643source code for files in
644.Pa /sbin
645.It Pa secure/
646build directory for files in
647.Pa /usr/src/crypto
648.It Pa share/
649source for files in
650.Pa /usr/share
651.It Pa sys/
652kernel source code
653.Bl -tag -width "opencrypto/" -compact
654.It Pa amd64/
655AMD64 architecture support
656.It Pa arm/
657ARM architecture support
658.It Pa arm64/
659ARMv8 architecture support
660.It Pa boot/
661bootloader code
662.It Pa cam/
663.Xr cam 4
664and
665.Xr ctl 4
666.It Pa cddl/
667CDDL-licensed optional sources, including ZFS
668and DTrace
669.It Pa ddb/
670.Xr ddb 4
671.It Pa fs/
672most filesystems
673.It Pa dev/
674device drivers
675.It Pa geom/
676.Xr geom 4
677.It Pa i386/
678i386 (32 bit) architecture support
679.It Pa kern/
680main part of the kernel
681.It Pa mips/
682MIPS architecture support
683.It Pa net80211/
684.Xr net80211 4
685.It Pa netgraph/
686.Xr netgraph 4
687.It Pa netinet/
688.Xr inet 4
689.It Pa netinet6/
690.Xr inet6 4
691.It Pa netipsec/
692.Xr ipsec 4
693.It Pa netpfil/
694.Xr ipfw 4
695and
696.Xr pf 4
697.It Pa opencrypto/
698.Xr crypto 7
699.It Pa powerpc/
700PowerPC/POWER architecture support
701.It Pa riscv/
702RISC-V architecture support
703.It Pa security/
704.Xr audit 4
705and
706.Xr mac 4
707.It Pa sparc64/
708SPARC64 architecture support
709.It Pa sys/
710kernel headers
711.It Pa ufs/
712Unix File System
713.It Pa x86/
714code shared by AMD64 and i386 architectures
715.El
716.It Pa targets/
717support for experimental DIRDEPS_BUILD
718.It Pa tests/
719source code for files in
720.Pa /usr/tests
721.It Pa tools/
722tools used for maintenance and testing of
723.Fx
724.It Pa usr.bin/
725source code for files in
726.Pa /usr/bin
727.It Pa usr.sbin/
728source code for files in
729.Pa /usr/sbin
730.El
731.Pp
732.It Pa tests/
733The
734.Fx
735test suite.
736See
737.Xr tests 7
738for more details.
739.El
740.It Pa /var/
741multi-purpose log, temporary, transient, and spool files
742.Pp
743.Bl -tag -width "preserve/" -compact
744.It Pa account/
745system accounting files
746.Pp
747.Bl -tag -width Fl -compact
748.It Pa acct
749execution accounting file;
750see
751.Xr acct 5
752.El
753.Pp
754.It Pa at/
755timed command scheduling files;
756see
757.Xr \&at 1
758.Bl -tag -width "preserve/" -compact
759.It Pa jobs/
760directory containing job files
761.It Pa spool/
762directory containing output spool files
763.El
764.Pp
765.It Pa backups/
766miscellaneous backup files
767.It Pa cache/
768miscellaneous cached files
769.Bl -tag -width "pkg/" -compact
770.It Pa pkg/
771cached packages for
772.Xr pkg 8
773.El
774.Pp
775.It Pa crash/
776default directory to store kernel crash dumps; see
777.Xr crash 8
778and
779.Xr savecore 8
780.It Pa cron/
781files used by cron;
782see
783.Xr cron 8
784.Bl -tag -width "preserve/" -compact
785.It Pa tabs/
786crontab files;
787see
788.Xr crontab 5
789.El
790.Pp
791.It Pa db/
792miscellaneous automatically generated system-specific database files
793.It Pa empty/
794empty directory for use by programs that need a specifically empty directory.
795Used for instance by
796.Xr sshd 8
797for privilege separation.
798.It Pa games/
799miscellaneous game status and score files
800.It Pa heimdal/
801kerberos server databases; see
802.Xr kdc 8
803.It Pa log/
804miscellaneous system log files
805.Pp
806.Bl -tag -width Fl -compact
807.It Pa utx.lastlogin
808last login log;
809see
810.Xr getutxent 3
811.It Pa utx.log
812login/logout log;
813see
814.Xr getutxent 3
815.El
816.Pp
817.It Pa mail/
818user mailbox files
819.It Pa msgs/
820system messages database;
821see
822.Xr msgs 1
823.It Pa preserve/
824temporary home of files preserved after an accidental death
825of an editor;
826see
827.Xr \&ex 1
828.It Pa quotas/
829file system quota information files
830.It Pa run/
831system information files describing various info about
832system since it was booted
833.Pp
834.Bl -tag -width Fl -compact
835.It Pa ppp/
836writable by the
837.Dq network
838group for command connection sockets; see
839.Xr ppp 8
840.It Pa utx.active
841database of current users;
842see
843.Xr getutxent 3
844.El
845.Pp
846.It Pa rwho/
847rwho data files;
848see
849.Xr rwhod 8 ,
850.Xr rwho 1 ,
851and
852.Xr ruptime 1
853.It Pa spool/
854miscellaneous printer and mail system spooling directories
855.Pp
856.Bl -tag -width Fl -compact
857.It Pa clientmqueue/
858undelivered submission mail queue;
859see
860.Xr sendmail 8
861.It Pa ftp/
862commonly ~ftp; the anonymous ftp root directory
863.It Pa mqueue/
864undelivered mail queue;
865see
866.Xr sendmail 8
867.It Pa output/
868line printer spooling directories
869.El
870.Pp
871.It Pa tmp/
872temporary files that are kept between system reboots
873.Bl -tag -width Fl -compact
874.It Pa vi.recover/
875the directory where recovery files are stored
876.El
877.It Pa yp/
878the NIS maps
879.El
880.El
881.Sh NOTES
882This manual page documents the default
883.Fx
884file system layout, but
885the actual hierarchy on a given system is defined at the system
886administrator's discretion.
887A well-maintained installation will include a customized version of
888this document.
889.Sh SEE ALSO
890.Xr apropos 1 ,
891.Xr find 1 ,
892.Xr finger 1 ,
893.Xr grep 1 ,
894.Xr ls 1 ,
895.Xr whatis 1 ,
896.Xr whereis 1 ,
897.Xr which 1 ,
898.Xr fd 4 ,
899.Xr devfs 5 ,
900.Xr fsck 8
901.Sh HISTORY
902A
903.Nm
904manual page appeared in
905.At v7 .
906