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