xref: /freebsd/share/man/man7/hier.7 (revision dbd5678d)
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 1, 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 /nonexistent/
178a non-existent directory;
179by convention, it serves as a home directory
180for special user accounts
181that need no home directory;
182see also
183.Pa /var/empty/
184.It Pa /proc/
185process file system;
186see
187.Xr procfs 5
188.It Pa /rescue/
189statically linked programs for emergency recovery;
190see
191.Xr rescue 8
192.It Pa /root/
193root's HOME directory
194.It Pa /sbin/
195system programs and administration utilities
196fundamental to both single-user and multi-user environments
197.It Pa /tmp/
198temporary files that are not guaranteed to persist across system reboots
199.It Pa /usr/
200contains the majority of user utilities and applications
201.Pp
202.Bl -tag -width "freebsd-dist/" -compact
203.It Pa bin/
204common utilities, programming tools, and applications
205.It Pa compat/
206files needed to support binary compatibility with other operating systems;
207see
208.Xr linux 4
209.It Pa freebsd-dist/
210distribution files
211.Pq like base.txz ;
212see
213.Xr release 7
214and
215.Xr bsdinstall 8
216.It Pa include/
217standard C include files
218.Pp
219.Bl -tag -width "kerberos5/" -compact
220.It Pa arpa/
221C include files for Internet service protocols
222.It Pa bsnmp/
223C include files for the SNMP daemon
224.It Pa c++/
225C++ include files
226.It Pa cam/
227C include files for the Common Access Methods Layer
228.Bl -tag -width "kerberos5/" -compact
229.It Pa scsi/
230SCSI device on top of CAM
231.El
232.It Pa dev/
233C include files for programming various
234.Fx
235devices
236.Bl -tag -width "kerberos5/" -compact
237.It Pa ic/
238various header files describing driver- and bus-independent
239hardware circuits
240.It Pa ofw/
241Open Firmware support
242.It Pa pbio/
2438255 PPI cards;
244see
245.Xr pbio 4
246.It Pa ppbus/
247parallel port bus;
248see
249.Xr ppbus 4
250.It Pa usb/
251USB subsystem
252.El
253.It Pa fs/
254.Bl -tag -width "kerberos5/" -compact
255.It Pa fdescfs/
256per-process file descriptors file system
257.It Pa msdosfs/
258MS-DOS file system
259.It Pa nfs/
260C include files for NFS (Network File System) version 2, 3 and 4
261.It Pa nullfs/
262loopback file system
263.It Pa procfs/
264process file system
265.It Pa smbfs/
266SMB/CIFS file system
267.It Pa udf/
268UDF file system
269.It Pa unionfs
270union file system
271.El
272.It Pa geom/
273GEOM framework
274.Bl -tag -width "kerberos5/" -compact
275.It Pa concat/
276CONCAT GEOM class
277.It Pa gate/
278GATE GEOM class
279.It Pa mirror/
280MIRROR GEOM class
281.It Pa nop/
282NOP GEOM class
283.It Pa raid3/
284RAID3 GEOM class
285.It Pa stripe/
286STRIPE GEOM class
287.El
288.It Pa libmilter/
289C include files for libmilter,
290the
291.Xr sendmail 8
292mail filter API
293.It Pa machine/
294machine-specific C include files
295.It Pa net/
296miscellaneous network C include files
297.Bl -tag -width Fl -compact
298.It Pa altq/
299C include files for alternate packet queueing; see
300.Xr altq 4
301.El
302.It Pa net80211/
303C include files for 802.11 wireless networking;
304see
305.Xr net80211 4
306.It Pa netinet/
307C include files for Internet standard protocols;
308see
309.Xr inet 4
310.It Pa netinet6/
311C include files for Internet protocol version 6;
312see
313.Xr inet6 4
314.It Pa netipsec/
315kernel key-management service;
316see
317.Xr ipsec 4
318.It Pa netsmb/
319SMB/CIFS requester
320.It Pa nfs/
321C include files for NFS (Network File System) version 2 and 3 (legacy)
322.It Pa openssl/
323OpenSSL (Cryptography/SSL toolkit) headers
324.It Pa protocols/
325C include files for Berkeley service protocols
326.It Pa rpc/
327remote procedure calls;
328see
329.Xr rpc 3
330.It Pa rpcsvc/
331definition of RPC service structures; see
332.Xr rpc 3
333.It Pa security/
334PAM; see
335.Xr pam 8
336.It Pa sys/
337system C include files (kernel data structures)
338.\" .It Pa tcl/
339.\" Tcl language;
340.\" see
341.\" .Xr Tcl n
342.\" .Bl -tag -width "kerberos5/" -compact
343.\" .It Pa generic/
344.\" ???
345.\" .It Pa unix/
346.\" ???
347.\" .El
348.It Pa ufs/
349C include files for UFS (The U-word File System)
350.Bl -tag -width "kerberos5/" -compact
351.It Pa ffs/
352Fast file system
353.It Pa ufs/
354UFS file system
355.El
356.It Pa vm/
357virtual memory;
358see
359.Xr vmstat 8
360.El
361.Pp
362.It Pa lib/
363shared and archive
364.Xr ar 1 Ns -type
365libraries
366.Pp
367.Bl -tag -width Fl -compact
368.It Pa compat/
369shared libraries for compatibility
370.It Pa debug/
371standalone debug data for the kernel and base system libraries and binaries
372.It Pa dtrace/
373DTrace library scripts
374.It Pa engines/
375OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines
376.El
377.Pp
378.It Pa libdata/
379miscellaneous utility data files
380.Pp
381.Bl -tag -width Fl -compact
382.It Pa gcc/
383.Xr gcc 1
384configuration data
385.It Pa ldscripts/
386linker scripts;
387see
388.Xr ld 1
389.It Pa pkgconfig/
390pc files
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 2nd International
468.El
469.It Pa doc/
470miscellaneous documentation;
471source for most of the printed
472.Bx
473manuals (available
474from the
475.Tn USENIX
476association)
477.Bl -tag -width Fl -compact
478.It Pa FAQ/
479Frequently Asked Questions
480.It Pa IPv6/
481implementation notes for IPv6
482.It Pa es/
483Spanish translations of documents in /usr/share/doc
484.It Pa handbook/
485.Fx
486Handbook
487.It Pa ja/
488Japanese translations of documents in /usr/share/doc
489.It Pa legal/
490License files for vendor supplied firmware files
491.It Pa ncurses/
492HTML documents pertaining to ncurses;
493see
494.Xr ncurses 3
495.It Pa ntp/
496HTML documents pertaining to the Network Time Protocol
497.It Pa ru/
498Russian translations of documents in /usr/share/doc
499.It Pa tutorials/
500.Fx
501tutorials
502.It Pa zh/
503Chinese translations of documents in /usr/share/doc
504.El
505.It Pa examples/
506various examples for users and programmers
507.It Pa firmware/
508firmware images loaded by userland programs
509.It Pa games/
510ASCII text files used by various games
511.It Pa keys/
512known trusted and revoked keys
513.Bl -tag -width Fl -compact
514.It Pa pkg/
515fingerprints for
516.Xr pkg 7
517and
518.Xr pkg 8
519.El
520.It Pa locale/
521localization files;
522see
523.Xr setlocale 3
524.It Pa man/
525manual pages
526.It Pa misc/
527miscellaneous system-wide ASCII text files
528.Bl -tag -width Fl -compact
529.It Pa fonts/
530???
531.It Pa termcap
532terminal characteristics database;
533see
534.Xr termcap 5
535.El
536.It Pa mk/
537templates for make;
538see
539.Xr make 1
540.It Pa nls/
541national language support files
542.It Pa security/
543data files for security policies such as
544.Xr mac_lomac 4
545.It Pa sendmail/
546.Xr sendmail 8
547configuration files
548.It Pa skel/
549example
550.Pa .\&
551(dot) files for new accounts
552.It Pa snmp/
553MIBs, example files and tree definitions for the SNMP daemon
554.Bl -tag -width Fl -compact
555.It Pa defs/
556tree definition files for use with
557.Xr gensnmptree 1
558.It Pa mibs/
559MIB files
560.El
561.It Pa syscons/
562files used by syscons;
563see
564.Xr syscons 4
565.Bl -tag -width Fl -compact
566.It Pa fonts/
567console fonts;
568see
569.Xr vidcontrol 1
570and
571.Xr vidfont 1
572.It Pa keymaps/
573console keyboard maps;
574see
575.Xr kbdcontrol 1
576and
577.Xr kbdmap 1
578.It Pa scrnmaps/
579console screen maps
580.El
581.It Pa sysroot/
582files necessary for the -sysroot compiler/linker argument to build non-native
583binaries.
584.Bl -tag -width Fl -compact
585.It Pa VERSION/
586files for
587.Fx
588release VERSION.
589By convention,
590.Dq VERSION
591matches
592.Xr uname 1
593.Fl r .
594.Bl -tag -width Fl -compact
595.It Pa MACHINE.MACHINE_ARCH/
596represent the binary ABI for these files.
597.Dq MACHINE
598matches
599.Xr uname 1
600.Fl m .
601.Dq MACHINE_ARCH
602matches
603.Xr uname 1
604.Fl p .
605.El
606.El
607.It Pa tabset/
608tab description files for a variety of terminals; used in
609the termcap file;
610see
611.Xr termcap 5
612.It Pa vi/
613localization support and utilities for
614.Xr vi 1
615.It Pa vt/
616files used by vt;
617see
618.Xr vt 4
619.Bl -tag -width Fl -compact
620.It Pa fonts/
621console fonts;
622see
623.Xr vidcontrol 1
624and
625.Xr vidfont 1
626.It Pa keymaps/
627console keyboard maps;
628see
629.Xr kbdcontrol 1
630and
631.Xr kbdmap 1
632.\" .It Pa scrnmaps/
633.\" console screen maps
634.El
635.It Pa zoneinfo/
636timezone configuration information;
637see
638.Xr tzfile 5
639.El
640.Pp
641.It Pa src/
642.Fx
643source code; see
644.Xr development 7 .
645The layout of the source tree is described by the top-level
646.Pa README.md
647file.
648.Pp
649.It Pa tests/
650The
651.Fx
652test suite; see
653.Xr tests 7
654.El
655.It Pa /var/
656multi-purpose log, temporary, transient, and spool files
657.Pp
658.Bl -tag -width "defaults/" -compact
659.It Pa account/
660system accounting files
661.Pp
662.Bl -tag -width Fl -compact
663.It Pa acct
664execution accounting file;
665see
666.Xr acct 5
667.El
668.Pp
669.It Pa at/
670timed command scheduling files;
671see
672.Xr \&at 1
673.Pp
674.Bl -tag -width Fl -compact
675.It Pa jobs/
676directory containing job files
677.It Pa spool/
678directory containing output spool files
679.El
680.Pp
681.It Pa backups/
682miscellaneous backup files
683.It Pa cache/
684miscellaneous cached files
685.Pp
686.Bl -tag -width Fl -compact
687.It Pa pkg/
688cached packages for
689.Xr pkg 8
690.El
691.Pp
692.It Pa crash/
693default directory to store kernel crash dumps; see
694.Xr crash 8
695and
696.Xr savecore 8
697.It Pa cron/
698files used by cron;
699see
700.Xr cron 8
701.Pp
702.Bl -tag -width Fl -compact
703.It Pa tabs/
704crontab files;
705see
706.Xr crontab 5
707.El
708.Pp
709.It Pa db/
710miscellaneous automatically generated system-specific database files
711.Bl -tag -width Fl -compact
712.It Pa freebsd-update/
713.Xr freebsd-update 8
714work directory for temporary files and downloaded updates
715.El
716.It Pa empty/
717empty directory for use by programs that need a specifically empty directory.
718Used for instance by
719.Xr sshd 8
720for privilege separation
721.It Pa games/
722miscellaneous game status and score files
723.It Pa heimdal/
724Kerberos server databases; see
725.Xr kdc 8
726.It Pa log/
727miscellaneous system log files
728.Pp
729.Bl -tag -width Fl -compact
730.It Pa utx.lastlogin
731last login log;
732see
733.Xr getutxent 3
734.It Pa utx.log
735login/logout log;
736see
737.Xr getutxent 3
738.El
739.Pp
740.It Pa mail/
741user mailbox files
742.It Pa msgs/
743system messages database;
744see
745.Xr msgs 1
746.It Pa preserve/
747temporary home of files preserved after an accidental death
748of an editor;
749see
750.Xr \&ex 1
751.It Pa quotas/
752file system quota information files
753.It Pa run/
754system information files describing various info about
755system since it was booted
756.Pp
757.Bl -tag -width Fl -compact
758.It Pa bhyve/
759.Xr bhyve 8
760virtual machine
761.Xr unix 4 Ns -domain sockets
762.It Pa ppp/
763writable by the
764.Dq network
765group for command connection sockets; see
766.Xr ppp 8
767.It Pa utx.active
768database of current users;
769see
770.Xr getutxent 3
771.El
772.Pp
773.It Pa rwho/
774rwho data files;
775see
776.Xr rwhod 8 ,
777.Xr rwho 1 ,
778and
779.Xr ruptime 1
780.It Pa spool/
781miscellaneous printer and mail system spooling directories
782.Pp
783.Bl -tag -width Fl -compact
784.It Pa clientmqueue/
785undelivered submission mail queue;
786see
787.Xr sendmail 8
788.It Pa ftp/
789ftp root directory;
790see
791.Xr ftpd 8
792.It Pa mqueue/
793undelivered mail queue;
794see
795.Xr sendmail 8
796.It Pa output/
797line printer spooling directories
798.El
799.Pp
800.It Pa tmp/
801temporary files that are kept between system reboots
802.Pp
803.Bl -tag -width Fl -compact
804.It Pa vi.recover/
805the directory where recovery files are stored
806.El
807.Pp
808.It Pa yp/
809the NIS maps; see
810.Xr yp 8
811.El
812.El
813.Sh NOTES
814This manual page documents the default
815.Fx
816file system layout, but
817the actual hierarchy on a given system is defined at the system
818administrator's discretion.
819A well-maintained installation will include a customized version of
820this document.
821.Sh SEE ALSO
822.Xr apropos 1 ,
823.Xr find 1 ,
824.Xr grep 1 ,
825.Xr ls 1 ,
826.Xr whereis 1 ,
827.Xr which 1
828.Sh HISTORY
829A
830.Nm
831manual page appeared in
832.At v7 .
833