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