xref: /dflybsd-src/share/man/man7/hier.7 (revision 9e1c08804a46f1c1a9cd11e190ddba7d2bc4abed)
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: src/share/man/man7/hier.7,v 1.29.2.17 2003/01/13 21:43:50 ceri Exp $
30.\"
31.Dd March 6, 2014
32.Dt HIER 7
33.Os
34.Sh NAME
35.Nm hier
36.Nd layout of filesystems
37.Sh DESCRIPTION
38A sketch of the filesystem hierarchy.
39.Bl -tag -width ".Pa /modules/"
40.It Pa /
41root directory of the filesystem
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 ".Pa defaults/" -compact
48.It Pa defaults/
49default bootstrapping configuration files; see
50.Xr loader.conf 5
51.It Pa kernel/
52pure kernel executable (the operating system loaded into memory
53at boot time) and loadable kernel modules;
54see
55.Xr kldstat 8
56.El
57.It Pa /compat/
58files related to compatibility layers
59.Pp
60.Bl -tag -width ".Pa ndis/" -compact
61.It Pa ndis/
62firmware for
63.Xr ndis 4
64drivers
65.El
66.It Pa /dev/
67block and character device files
68.Pp
69.Bl -tag -width ".Pa fd/" -compact
70.It Pa fd/
71file descriptor files;
72see
73.Xr \&fd 4
74.El
75.It Pa /etc/
76system configuration files and scripts
77.Pp
78.Bl -tag -width ".Pa bluetooth/" -compact
79.It Pa bluetooth/
80bluetooth configuration files
81.It Pa defaults/
82default system configuration files;
83see
84.Xr rc 8
85.It Pa dma/
86.Xr dma 8
87configuration files
88.It Pa localtime
89local timezone information;
90see
91.Xr ctime 3
92.It Pa mail/
93Sendmail control files
94.It Pa mtree/
95mtree configuration files;
96see
97.Xr mtree 8
98.It Pa pam.d/
99configuration files for the Pluggable Authentication Modules (PAM)
100library
101.It Pa periodic/
102scripts that are run daily, weekly, and monthly, via
103.Xr cron 8 ;
104see
105.Xr periodic 8
106.It Pa ppp/
107ppp configuration files;
108see
109.Xr ppp 8
110.It Pa rc.d/
111System and daemon startup/control scripts;
112see
113.Xr rc 8
114.It Pa ssh/
115OpenSSH configuration files;
116see
117.Xr ssh 1
118.It Pa ssl/
119OpenSSL configuration files
120.It Pa upgrade/
121Files relevant to system upgrades
122.It Pa uucp/
123uucp configuration files;
124see
125.Xr uucp 1
126.El
127.It Pa /home/
128HOME directories of non-root users
129.It Pa /mnt/
130empty directory commonly used by
131system administrators as a temporary mount point
132.It Pa /pfs/
133pseudo file system directory (on
134.Xr hammer 5
135root file systems)
136.It Pa /proc/
137process file system;
138see
139.Xr procfs 5 ,
140.Xr mount_procfs 8
141.It Pa /root/
142root's HOME directory
143.It Pa /sbin/
144system programs and administration utilities
145fundamental to both single-user and multi-user environments
146.It Pa /sys/
147the kernel's source code (usually a symbolic link to
148.Pa /usr/src/sys )
149.It Pa /tmp/
150temporary files that are not guaranteed to persist across system reboots
151.It Pa /usr/
152contains the majority of user utilities and applications
153.Pp
154.Bl -tag -width ".Pa libdata/" -compact
155.It Pa bin/
156common utilities, programming tools, and applications
157.It Pa dports/
158The
159.Dx
160.Xr dports 7
161collection (optional).
162.It Pa games/
163useful and semi-frivolous programs
164.It Pa include/
165standard C include files
166.Pp
167.Bl -tag -width ".Pa libmilter/" -compact
168.It Pa arpa/
169C include files for Internet service protocols
170.It Pa c++/
171C++ include files
172.It Pa cam/
173C include files for the Common Access Methods Layer
174.Pp
175.Bl -tag -width ".Pa scsi/" -compact
176.It Pa scsi/
177The SCSI device on top of CAM
178.El
179.Pp
180.It Pa dev/
181C include files for programming various
182.Dx
183devices
184.It Pa emulation/
185Include Files for various emulation layers
186.It Pa fs/
187.Pp
188.Bl -tag -width ".Pa smbfs/" -compact
189.It Pa smbfs/
190SMB/CIFS filesystem
191.El
192.Pp
193.It Pa isofs/
194.Pp
195.Bl -tag -width ".Pa cd9660/" -compact
196.It Pa cd9660/
197iso9660 filesystem
198.El
199.Pp
200.It Pa libmilter/
201C include files for libmilter,
202the sendmail mail filter API
203.It Pa libprop/
204C include files for libprop
205.It Pa machine/
206machine-specific C include files
207.It Pa msdosfs/
208MS-DOS file system
209.It Pa net/
210misc network C include files
211.It Pa netatm/
212ATM include files;
213see
214.Xr atm 8
215.It Pa netinet/
216C include files for Internet standard protocols;
217see
218.Xr inet 4
219.It Pa netinet6/
220C include files for Internet protocol version 6;
221see
222.Xr inet6 4
223.It Pa netkey/
224kernel key-management service
225.It Pa netnatm/
226NATM include files;
227see
228.Xr natm 4
229.It Pa netsmb/
230SMB/CIFS requester
231.It Pa nfs/
232C include files for NFS (Network File System)
233.It Pa openssl/
234OpenSSL (Cryptography/SSL toolkit) headers
235.It Pa pcap/
236Packet Capture (libpcap) headers;
237see
238.Xr pcap 3
239.It Pa pccard/
240PC-CARD controllers
241.It Pa protocols/
242C include files for Berkeley service protocols
243.It Pa readline/
244get a line from a user, with editing;
245see
246.Xr readline 3
247.It Pa rpc/
248remote procedure calls;
249see
250.Xr rpc 3
251.It Pa rpcsvc/
252definition of RPC service structures; see
253.Xr rpc 3
254.It Pa security/
255PAM; see
256.Xr pam 8
257.It Pa sys/
258system C include files (kernel data structures)
259.It Pa ufs/
260C include files for UFS (The U-word File System)
261.Pp
262.Bl -tag -width ".Pa ffs/" -compact
263.It Pa ffs/
264Fast filesystem
265.It Pa mfs/
266memory file system;
267see
268.Xr mount_mfs 8
269.It Pa ufs/
270UFS filesystem
271.El
272.Pp
273.It Pa vm/
274virtual memory;
275see
276.Xr vmstat 8
277.El
278.Pp
279.It Pa lib/
280archive libraries
281.Pp
282.Bl -tag -width ".Pa compat/" -compact
283.It Pa aout/
284a.out archive libraries
285.It Pa compat/
286shared libraries for compatibility
287.Pp
288.Bl -tag -width ".Pa aout/" -compact
289.It Pa aout/
290a.out backward compatibility libraries
291.El
292.It Pa engines/
293OpenSSL dynamic engines
294.El
295.Pp
296.It Pa libdata/
297misc. utility data files
298.It Pa libexec/
299system daemons & system utilities (executed by other programs)
300.Pp
301.Bl -tag -width ".Pa binutils222/" -compact
302.It Pa binutils222/
303.Pp
304.Bl -tag -width ".Pa ldscripts/" -compact
305.It Pa ldscripts/
306linker scripts;
307see
308.Xr ld 1
309.El
310.Pp
311.It Pa binutils224/
312.Pp
313.Bl -tag -width ".Pa ldscripts/" -compact
314.It Pa ldscripts/
315linker scripts;
316see
317.Xr ld 1
318.El
319.Pp
320.It Pa lpr/
321utilities and filters for LP print system;
322see
323.Xr lpr 1
324.It Pa sendmail/
325the sendmail binary;
326see
327.Xr mailwrapper 8
328and
329.Xr sendmail 8
330.It Pa sm.bin/
331restricted shell for sendmail;
332see
333.Xr smrsh 8
334.It Pa uucp/
335uucp utilities;
336see
337.Xr uucp 1
338.El
339.Pp
340.It Pa local/
341local executables, libraries, etc.
342Also used as the default destination for the
343.Dx
344.Xr dports 7
345framework.
346Within
347.Pa local/ ,
348the general layout sketched out by
349.Nm
350for
351.Pa /usr
352should be used.
353Exceptions are the
354.Pa man
355directory
356.Po directly under
357.Pa local/
358rather than under
359.Pa local/share/ Ns Pc ,
360ports documentation
361.Po in
362.Pa share/doc/<port>/ Ns Pc ,
363and
364.Pa /usr/local/etc
365.Po mimics
366.Pa /etc Ns Pc .
367.It Pa obj/
368architecture-specific target tree produced by building the
369.Pa /usr/src
370tree
371.It Pa pkg/
372default destination directory for the
373.Xr pkgsrc 7
374collection.
375Within
376.Pa pkg/ ,
377the general layout sketched out by
378.Xr hier 7
379for
380.Pa /usr
381should be used.
382Exceptions are the
383.Pa man/
384directory (directly under
385.Pa pkg/
386rather than under
387.Pa pkg/share/ ) ,
388documentation (in
389.Pa share/doc/<pkg>/ ) ,
390and
391.Pa /usr/pkg/etc
392.Pf ( mimics
393.Pa /etc ) .
394.It Pa pkgsrc/
395The
396.Xr pkgsrc 7
397collection (optional).
398.It Pa sbin/
399system daemons & system utilities (executed by users)
400.It Pa share/
401architecture-independent files
402.Pp
403.Bl -tag -width ".Pa groff_font/" -compact
404.It Pa calendar/
405a variety of pre-fab calendar files;
406see
407.Xr calendar 1
408.It Pa dict/
409word lists;
410see
411.Xr look 1
412.Pp
413.Bl -tag -width ".Pa papers/" -compact
414.It Pa web2
415words from Webster's 2nd International
416.It Pa words
417common words
418.It Pa papers/
419reference databases;
420see
421.Xr refer 1
422.El
423.Pp
424.It Pa doc/
425miscellaneous documentation
426.Pp
427.Bl -tag -width ".Pa legal/" -compact
428.It Pa legal/
429License files for vendor supplied firmware
430.El
431.Pp
432.It Pa examples/
433various examples for users and programmers
434.It Pa games/
435ASCII text files used by various games
436.It Pa groff_font/
437device description file for device name
438.It Pa i18n/
439internationalization databases; see
440.Xr iconv 3
441.It Pa info/
442GNU Info hypertext system
443.It Pa libg++/
444libg++'s genclass prototype/template class files
445.It Pa locale/
446localization files;
447see
448.Xr setlocale 3
449.It Pa man/
450manual pages
451.It Pa me/
452macros for use with the me macro package;
453see
454.Xr me 7
455.It Pa misc/
456misc system-wide ASCII text files
457.Pp
458.Bl -tag -width ".Pa termcap" -compact
459.It Pa termcap
460terminal characteristics database;
461see
462.Xr termcap 5
463.El
464.Pp
465.It Pa mk/
466templates for make;
467see
468.Xr make 1
469.It Pa nls/
470national language support files;
471see
472.Xr mklocale 1
473.It Pa openssl/
474.Pp
475.Bl -tag -width ".Pa man/" -compact
476.It Pa man/
477OpenSSL manual pages
478.El
479.Pp
480.It Pa sendmail/
481sendmail configuration files;
482see
483.Xr sendmail 8
484.It Pa skel/
485example . (dot) files for new accounts
486.It Pa syscons/
487files used by
488.Xr syscons 4
489.Pp
490.Bl -tag -width ".Pa scrnmaps/" -compact
491.It Pa fonts/
492console fonts;
493see
494.Xr vidcontrol 1
495and
496.Xr vidfont 1
497.It Pa keymaps/
498console keyboard maps;
499see
500.Xr kbdcontrol 1
501and
502.Xr kbdmap 1
503.It Pa scrnmaps/
504console screen maps
505.El
506.Pp
507.It Pa tabset/
508tab description files for a variety of terminals; used in
509the termcap file;
510see
511.Xr termcap 5
512.It Pa terminfo/
513compiled
514.Xr terminfo 5
515database files
516.It Pa tmac/
517text processing macros;
518see
519.Xr nroff 1
520and
521.Xr troff 1
522.It Pa vi/
523localization support and utilities for
524.Xr vi 1
525.It Pa zoneinfo/
526timezone configuration information;
527see
528.Xr tzfile 5
529.El
530.Pp
531.It Pa src/
532.Bx ,
533third-party, and/or local source files
534.Pp
535.Bl -tag -width ".Pa nrelease/" -compact
536.It Pa bin/
537source code for files in
538.Pa /bin
539.It Pa contrib/
540source code for contributed software
541.It Pa crypto/
542source code for contributed cryptography software
543.It Pa etc/
544source code for files in
545.Pa /etc
546.It Pa games/
547source code for files in
548.Pa /usr/games
549.It Pa gnu/
550Utilities covered by the GNU General Public License
551.It Pa include/
552source code for files in
553.Pa /usr/include
554.It Pa lib/
555source code for files in
556.Pa /usr/lib
557.It Pa libexec/
558source code for files in
559.Pa /usr/libexec
560.It Pa nrelease/
561files required to produce a
562.Dx
563release
564.It Pa sbin/
565source code for files in
566.Pa /sbin
567.It Pa secure/
568build directory for files in
569.Pa /usr/src/crypto
570.It Pa share/
571source for files in
572.Pa /usr/share
573.It Pa sys/
574kernel source code
575.It Pa tools/
576tools used for maintenance and testing of
577.Dx
578.It Pa usr.bin/
579source code for files in
580.Pa /usr/bin
581.It Pa usr.sbin/
582source code for files in
583.Pa /usr/sbin
584.El
585.El
586.It Pa /var/
587multi-purpose log, temporary, transient, and spool files
588.Pp
589.Bl -tag -width ".Pa preserve/" -compact
590.It Pa account/
591system accounting files
592.Pp
593.Bl -tag -width ".Pa acct" -compact
594.It Pa acct
595execution accounting file;
596see
597.Xr acct 5
598.El
599.Pp
600.It Pa at/
601timed command scheduling files;
602see
603.Xr \&at 1
604.Pp
605.Bl -tag -width ".Pa spool/" -compact
606.It Pa jobs/
607directory containing job files
608.It Pa spool/
609directory containing output spool files
610.El
611.Pp
612.It Pa backups/
613misc. backup files
614.It Pa crash/
615default directory to store kernel crash dumps; see
616.Xr crash 8
617and
618.Xr savecore 8
619.It Pa cron/
620files used by cron;
621see
622.Xr cron 8
623.Pp
624.Bl -tag -width ".Pa tabs/" -compact
625.It Pa tabs/
626crontab files;
627see
628.Xr crontab 5
629.El
630.Pp
631.It Pa db/
632misc. automatically generated system-specific database files
633.It Pa empty/
634empty directory used by
635.Xr sshd 8
636for privilege separation
637.It Pa games/
638misc. game status and score files
639.It Pa hammer/
640per PFS (pseudo file system) snapshots directory for
641.Xr hammer 5
642file systems
643.It Pa log/
644misc. system log files
645.Pp
646.Bl -tag -width ".Pa wtmp" -compact
647.It Pa wtmp
648login/logout log;
649see
650.Xr wtmp 5
651.El
652.Pp
653.It Pa mail/
654user mailbox files
655.It Pa msgs/
656system messages database;
657see
658.Xr msgs 1
659.It Pa preserve/
660temporary home of files preserved after an accidental death
661of an editor;
662see
663.Xr \&ex 1
664.It Pa quotas/
665filesystem quota information files
666.It Pa run/
667system information files describing various info about
668system since it was booted
669.Pp
670.Bl -tag -width ".Pa ppp/" -compact
671.It Pa ppp/
672writable by the
673.Dq network
674group for command connection sockets; see
675.Xr ppp 8
676.It Pa utmp
677database of current users;
678see
679.Xr utmp 5
680.El
681.Pp
682.It Pa rwho/
683rwho data files;
684see
685.Xr rwhod 8 ,
686.Xr rwho 1 ,
687and
688.Xr ruptime 1
689.It Pa spool/
690misc. printer and mail system spooling directories
691.Pp
692.Bl -tag -width ".Pa clientmqueue/" -compact
693.It Pa clientmqueue/
694undelivered submission mail queue;
695see
696.Xr sendmail 8
697.It Pa dma/
698undelivered mail queue;
699see
700.Xr dma 8
701.It Pa ftp/
702commonly
703.Pa ~ftp ;
704the anonymous ftp root directory
705.It Pa mqueue/
706undelivered mail queue;
707see
708.Xr sendmail 8
709.It Pa output/
710line printer spooling directories
711.It Pa uucp/
712uucp spool directory
713.It Pa uucppublic/
714commonly
715.Pa ~uucp ;
716public uucp temporary directory
717.El
718.Pp
719.It Pa tmp/
720temporary files that are kept between system reboots
721.Pp
722.Bl -tag -width ".Pa vi.recover/" -compact
723.It Pa vi.recover/
724the directory where recovery files are stored
725.El
726.Pp
727.It Pa yp/
728the NIS maps
729.El
730.El
731.Sh NOTES
732This manual page documents the default
733.Dx
734filesystem layout, but
735the actual hierarchy on a given system is defined at the system
736administrator's discretion.
737A well-maintained installation will include a customized version of
738this document.
739.Sh SEE ALSO
740.Xr apropos 1 ,
741.Xr find 1 ,
742.Xr finger 1 ,
743.Xr grep 1 ,
744.Xr ls 1 ,
745.Xr whatis 1 ,
746.Xr whereis 1 ,
747.Xr which 1 ,
748.Xr fsck 8
749.Sh HISTORY
750A
751.Nm
752manual page appeared in
753.At v7 .
754