xref: /freebsd/share/man/man7/hier.7 (revision bc7512cc58af2e8bbe5bbf5ca0059b1daa1da897)
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 March 14, 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 aout/
362a.out archive libraries
363.It Pa compat/
364shared libraries for compatibility
365.Bl -tag -width Fl -compact
366.It Pa aout/
367a.out backward compatibility libraries
368.El
369.It Pa debug/
370standalone debug data for the kernel and base system libraries and binaries
371.It Pa dtrace/
372DTrace library scripts
373.It Pa engines/
374OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines
375.El
376.Pp
377.It Pa libdata/
378miscellaneous utility data files
379.Pp
380.Bl -tag -width Fl -compact
381.It Pa gcc/
382.Xr gcc 1
383configuration data
384.It Pa ldscripts/
385linker scripts;
386see
387.Xr ld 1
388.El
389.Pp
390.It Pa libexec/
391system daemons & system utilities (executed by other programs)
392.Pp
393.Bl -tag -width Fl -compact
394.It Pa aout/
395utilities to manipulate a.out executables
396.It Pa elf/
397utilities to manipulate ELF executables
398.It Pa lpr/
399utilities and filters for LP print system;
400see
401.Xr lpr 1
402.It Pa sendmail/
403the
404.Xr sendmail 8
405binary;
406see
407.Xr mailwrapper 8
408.It Pa sm.bin/
409restricted shell for
410.Xr sendmail 8 ;
411see
412.Xr smrsh 8
413.El
414.Pp
415.It Pa local/
416local executables, libraries, etc.
417Also used as the default destination for the
418.Xr ports 7
419framework.
420Within
421.Pa local/ ,
422the general layout sketched out by
423.Nm
424for
425.Pa /usr
426should be used.
427Exceptions are the
428ports documentation
429.Po in
430.Pa share/doc/<port>/ Ns Pc ,
431and
432.Pa /usr/local/etc
433.Po mimics
434.Pa /etc Ns Pc .
435.It Pa obj/
436architecture-specific target tree produced by building the
437.Pa /usr/src
438tree
439.It Pa ports/
440.Fx
441ports collection; see
442.Xr ports 7
443.It Pa sbin/
444system daemons & system utilities (executed by users)
445.It Pa share/
446architecture-independent files
447.Pp
448.Bl -tag -width Fl -compact
449.It Pa calendar/
450a variety of pre-fab calendar files;
451see
452.Xr calendar 1
453.It Pa dict/
454word lists;
455see
456.Xr look 1
457.Bl -tag -width Fl -compact
458.It Pa freebsd
459.Fx Ns -specific
460terms, proper names, and jargon
461.It Pa web2
462words from Webster's 2nd International
463.El
464.It Pa doc/
465miscellaneous documentation;
466source for most of the printed
467.Bx
468manuals (available
469from the
470.Tn USENIX
471association)
472.Bl -tag -width Fl -compact
473.It Pa FAQ/
474Frequently Asked Questions
475.It Pa IPv6/
476implementation notes for IPv6
477.It Pa es/
478Spanish translations of documents in /usr/share/doc
479.It Pa handbook/
480.Fx
481Handbook
482.It Pa ja/
483Japanese translations of documents in /usr/share/doc
484.It Pa legal/
485License files for vendor supplied firmware files
486.It Pa ncurses/
487HTML documents pertaining to ncurses;
488see
489.Xr ncurses 3
490.It Pa ntp/
491HTML documents pertaining to the Network Time Protocol
492.It Pa ru/
493Russian translations of documents in /usr/share/doc
494.It Pa tutorials/
495.Fx
496tutorials
497.It Pa zh/
498Chinese translations of documents in /usr/share/doc
499.El
500.It Pa examples/
501various examples for users and programmers
502.It Pa firmware/
503firmware images loaded by userland programs
504.It Pa games/
505ASCII text files used by various games
506.It Pa keys/
507known trusted and revoked keys
508.Bl -tag -width Fl -compact
509.It Pa pkg/
510fingerprints for
511.Xr pkg 7
512and
513.Xr pkg 8
514.El
515.It Pa locale/
516localization files;
517see
518.Xr setlocale 3
519.It Pa man/
520manual pages
521.It Pa misc/
522miscellaneous system-wide ASCII text files
523.Bl -tag -width Fl -compact
524.It Pa fonts/
525???
526.It Pa termcap
527terminal characteristics database;
528see
529.Xr termcap 5
530.El
531.It Pa mk/
532templates for make;
533see
534.Xr make 1
535.It Pa nls/
536national language support files
537.It Pa security/
538data files for security policies such as
539.Xr mac_lomac 4
540.It Pa sendmail/
541.Xr sendmail 8
542configuration files
543.It Pa skel/
544example
545.Pa .\&
546(dot) files for new accounts
547.It Pa snmp/
548MIBs, example files and tree definitions for the SNMP daemon
549.Bl -tag -width Fl -compact
550.It Pa defs/
551tree definition files for use with
552.Xr gensnmptree 1
553.It Pa mibs/
554MIB files
555.El
556.It Pa syscons/
557files used by syscons;
558see
559.Xr syscons 4
560.Bl -tag -width Fl -compact
561.It Pa fonts/
562console fonts;
563see
564.Xr vidcontrol 1
565and
566.Xr vidfont 1
567.It Pa keymaps/
568console keyboard maps;
569see
570.Xr kbdcontrol 1
571and
572.Xr kbdmap 1
573.It Pa scrnmaps/
574console screen maps
575.El
576.It Pa sysroot/
577files necessary for the -sysroot compiler/linker argument to build non-native
578binaries.
579.Bl -tag -width Fl -compact
580.It Pa VERSION/
581files for
582.Fx
583release VERSION.
584By convention,
585.Dq VERSION
586matches
587.Xr uname 1
588.Fl r .
589.Bl -tag -width Fl -compact
590.It Pa MACHINE.MACHINE_ARCH/
591represent the binary ABI for these files.
592.Dq MACHINE
593matches
594.Xr uname 1
595.Fl m .
596.Dq MACHINE_ARCH
597matches
598.Xr uname 1
599.Fl p .
600.El
601.El
602.It Pa tabset/
603tab description files for a variety of terminals; used in
604the termcap file;
605see
606.Xr termcap 5
607.It Pa vi/
608localization support and utilities for
609.Xr vi 1
610.It Pa vt/
611files used by vt;
612see
613.Xr vt 4
614.Bl -tag -width Fl -compact
615.It Pa fonts/
616console fonts;
617see
618.Xr vidcontrol 1
619and
620.Xr vidfont 1
621.It Pa keymaps/
622console keyboard maps;
623see
624.Xr kbdcontrol 1
625and
626.Xr kbdmap 1
627.\" .It Pa scrnmaps/
628.\" console screen maps
629.El
630.It Pa zoneinfo/
631timezone configuration information;
632see
633.Xr tzfile 5
634.El
635.Pp
636.It Pa src/
637.Fx
638source code; see
639.Xr development 7
640.Pp
641.Bl -tag -width "kerberos5/" -compact
642.It Pa bin/
643source code for files in /bin
644.It Pa cddl/
645utilities covered by the Common Development and Distribution License
646.It Pa contrib/
647source code for contributed software
648.It Pa crypto/
649source code for contributed cryptography software
650.It Pa etc/
651source code for files in
652.Pa /etc
653.It Pa gnu/
654utilities covered by the GNU General Public License
655.It Pa include/
656source code for files in
657.Pa /usr/include
658.It Pa kerberos5/
659build infrastructure for Kerberos version 5
660.It Pa lib/
661source code for files in
662.Pa /lib
663and
664.Pa /usr/lib
665.It Pa libexec/
666source code for files in
667.Pa /usr/libexec
668.It Pa release/
669files required to produce a
670.Fx
671release
672.It Pa rescue/
673source code for files in
674.Pa /rescue
675.It Pa sbin/
676source code for files in
677.Pa /sbin
678.It Pa secure/
679build directory for files in
680.Pa /usr/src/crypto
681.It Pa share/
682source for files in
683.Pa /usr/share
684.It Pa stand/
685boot loader source code
686.It Pa sys/
687kernel source code
688.Bl -tag -width Fl -compact
689.It Pa amd64/
690AMD64 architecture support
691.It Pa arm/
692ARM architecture support
693.It Pa arm64/
694ARMv8 architecture support
695.It Pa cam/
696.Xr cam 4
697and
698.Xr ctl 4
699.It Pa cddl/
700CDDL-licensed optional sources, including ZFS
701and DTrace
702.It Pa ddb/
703.Xr ddb 4
704.It Pa fs/
705most filesystems
706.It Pa dev/
707device drivers
708.It Pa geom/
709.Xr geom 4
710.It Pa i386/
711i386 (32 bit) architecture support
712.It Pa kern/
713main part of the kernel
714.It Pa net80211/
715.Xr net80211 4
716.It Pa netgraph/
717.Xr netgraph 4
718.It Pa netinet/
719.Xr inet 4
720.It Pa netinet6/
721.Xr inet6 4
722.It Pa netipsec/
723.Xr ipsec 4
724.It Pa netpfil/
725.Xr ipfw 4
726and
727.Xr pf 4
728.It Pa opencrypto/
729.Xr crypto 7
730.It Pa powerpc/
731PowerPC/POWER architecture support
732.It Pa riscv/
733RISC-V architecture support
734.It Pa security/
735.Xr audit 4
736and
737.Xr mac 4
738.It Pa sys/
739kernel headers
740.It Pa ufs/
741Unix File System
742.It Pa x86/
743code shared by AMD64 and i386 architectures
744.El
745.It Pa targets/
746support for experimental DIRDEPS_BUILD
747.It Pa tests/
748source code for files in
749.Pa /usr/tests
750.It Pa tools/
751tools used for maintenance and testing of
752.Fx
753.It Pa usr.bin/
754source code for files in
755.Pa /usr/bin
756.It Pa usr.sbin/
757source code for files in
758.Pa /usr/sbin
759.El
760.Pp
761.It Pa tests/
762The
763.Fx
764test suite; see
765.Xr tests 7
766.El
767.It Pa /var/
768multi-purpose log, temporary, transient, and spool files
769.Pp
770.Bl -tag -width "defaults/" -compact
771.It Pa account/
772system accounting files
773.Pp
774.Bl -tag -width Fl -compact
775.It Pa acct
776execution accounting file;
777see
778.Xr acct 5
779.El
780.Pp
781.It Pa at/
782timed command scheduling files;
783see
784.Xr \&at 1
785.Pp
786.Bl -tag -width Fl -compact
787.It Pa jobs/
788directory containing job files
789.It Pa spool/
790directory containing output spool files
791.El
792.Pp
793.It Pa backups/
794miscellaneous backup files
795.It Pa cache/
796miscellaneous cached files
797.Pp
798.Bl -tag -width Fl -compact
799.It Pa pkg/
800cached packages for
801.Xr pkg 8
802.El
803.Pp
804.It Pa crash/
805default directory to store kernel crash dumps; see
806.Xr crash 8
807and
808.Xr savecore 8
809.It Pa cron/
810files used by cron;
811see
812.Xr cron 8
813.Pp
814.Bl -tag -width Fl -compact
815.It Pa tabs/
816crontab files;
817see
818.Xr crontab 5
819.El
820.Pp
821.It Pa db/
822miscellaneous automatically generated system-specific database files
823.It Pa empty/
824empty directory for use by programs that need a specifically empty directory.
825Used for instance by
826.Xr sshd 8
827for privilege separation
828.It Pa games/
829miscellaneous game status and score files
830.It Pa heimdal/
831Kerberos server databases; see
832.Xr kdc 8
833.It Pa log/
834miscellaneous system log files
835.Pp
836.Bl -tag -width Fl -compact
837.It Pa utx.lastlogin
838last login log;
839see
840.Xr getutxent 3
841.It Pa utx.log
842login/logout log;
843see
844.Xr getutxent 3
845.El
846.Pp
847.It Pa mail/
848user mailbox files
849.It Pa msgs/
850system messages database;
851see
852.Xr msgs 1
853.It Pa preserve/
854temporary home of files preserved after an accidental death
855of an editor;
856see
857.Xr \&ex 1
858.It Pa quotas/
859file system quota information files
860.It Pa run/
861system information files describing various info about
862system since it was booted
863.Pp
864.Bl -tag -width Fl -compact
865.It Pa bhyve/
866bhyve vm unix domain sockets
867.It Pa ppp/
868writable by the
869.Dq network
870group for command connection sockets; see
871.Xr ppp 8
872.It Pa utx.active
873database of current users;
874see
875.Xr getutxent 3
876.El
877.Pp
878.It Pa rwho/
879rwho data files;
880see
881.Xr rwhod 8 ,
882.Xr rwho 1 ,
883and
884.Xr ruptime 1
885.It Pa spool/
886miscellaneous printer and mail system spooling directories
887.Pp
888.Bl -tag -width Fl -compact
889.It Pa clientmqueue/
890undelivered submission mail queue;
891see
892.Xr sendmail 8
893.It Pa ftp/
894commonly ~ftp; the anonymous ftp root directory
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