xref: /dflybsd-src/share/man/man7/hier.7 (revision 653318caa8600d01ee0a9c8acfef377de5ea5e99)
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/
62firmwares 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 netipx/
224IPX/SPX protocol stacks
225.It Pa netkey/
226kernel key-management service
227.It Pa netnatm/
228NATM include files;
229see
230.Xr natm 4
231.It Pa netsmb/
232SMB/CIFS requester
233.It Pa nfs/
234C include files for NFS (Network File System)
235.It Pa openssl/
236OpenSSL (Cryptography/SSL toolkit) headers
237.It Pa pcap/
238Packet Capture (libpcap) headers;
239see
240.Xr pcap 3
241.It Pa pccard/
242PC-CARD controllers
243.It Pa protocols/
244C include files for Berkeley service protocols
245.It Pa readline/
246get a line from a user, with editing;
247see
248.Xr readline 3
249.It Pa rpc/
250remote procedure calls;
251see
252.Xr rpc 3
253.It Pa rpcsvc/
254definition of RPC service structures; see
255.Xr rpc 3
256.It Pa security/
257PAM; see
258.Xr pam 8
259.It Pa sys/
260system C include files (kernel data structures)
261.It Pa ufs/
262C include files for UFS (The U-word File System)
263.Pp
264.Bl -tag -width ".Pa ffs/" -compact
265.It Pa ffs/
266Fast filesystem
267.It Pa mfs/
268memory file system;
269see
270.Xr mount_mfs 8
271.It Pa ufs/
272UFS filesystem
273.El
274.Pp
275.It Pa vm/
276virtual memory;
277see
278.Xr vmstat 8
279.El
280.Pp
281.It Pa lib/
282archive libraries
283.Pp
284.Bl -tag -width ".Pa compat/" -compact
285.It Pa aout/
286a.out archive libraries
287.It Pa compat/
288shared libraries for compatibility
289.Pp
290.Bl -tag -width ".Pa aout/" -compact
291.It Pa aout/
292a.out backward compatibility libraries
293.El
294.It Pa engines/
295OpenSSL dynamic engines
296.El
297.Pp
298.It Pa libdata/
299misc. utility data files
300.It Pa libexec/
301system daemons & system utilities (executed by other programs)
302.Pp
303.Bl -tag -width ".Pa binutils222/" -compact
304.It Pa binutils222/
305.Pp
306.Bl -tag -width ".Pa ldscripts/" -compact
307.It Pa ldscripts/
308linker scripts;
309see
310.Xr ld 1
311.El
312.Pp
313.It Pa binutils224/
314.Pp
315.Bl -tag -width ".Pa ldscripts/" -compact
316.It Pa ldscripts/
317linker scripts;
318see
319.Xr ld 1
320.El
321.Pp
322.It Pa lpr/
323utilities and filters for LP print system;
324see
325.Xr lpr 1
326.It Pa sendmail/
327the sendmail binary;
328see
329.Xr mailwrapper 8
330and
331.Xr sendmail 8
332.It Pa sm.bin/
333restricted shell for sendmail;
334see
335.Xr smrsh 8
336.It Pa uucp/
337uucp utilities;
338see
339.Xr uucp 1
340.El
341.Pp
342.It Pa local/
343local executables, libraries, etc.
344Also used as the default destination for the
345.Dx
346.Xr dports 7
347framework.
348Within
349.Pa local/ ,
350the general layout sketched out by
351.Nm
352for
353.Pa /usr
354should be used.
355Exceptions are the
356.Pa man
357directory
358.Po directly under
359.Pa local/
360rather than under
361.Pa local/share/ Ns Pc ,
362ports documentation
363.Po in
364.Pa share/doc/<port>/ Ns Pc ,
365and
366.Pa /usr/local/etc
367.Po mimics
368.Pa /etc Ns Pc .
369.It Pa obj/
370architecture-specific target tree produced by building the
371.Pa /usr/src
372tree
373.It Pa pkg/
374default destination directory for the
375.Xr pkgsrc 7
376collection.
377Within
378.Pa pkg/ ,
379the general layout sketched out by
380.Xr hier 7
381for
382.Pa /usr
383should be used.
384Exceptions are the
385.Pa man/
386directory (directly under
387.Pa pkg/
388rather than under
389.Pa pkg/share/ ) ,
390documentation (in
391.Pa share/doc/<pkg>/ ) ,
392and
393.Pa /usr/pkg/etc
394.Pf ( mimics
395.Pa /etc ) .
396.It Pa pkgsrc/
397The
398.Xr pkgsrc 7
399collection (optional).
400.It Pa sbin/
401system daemons & system utilities (executed by users)
402.It Pa share/
403architecture-independent files
404.Pp
405.Bl -tag -width ".Pa groff_font/" -compact
406.It Pa calendar/
407a variety of pre-fab calendar files;
408see
409.Xr calendar 1
410.It Pa dict/
411word lists;
412see
413.Xr look 1
414.Pp
415.Bl -tag -width ".Pa papers/" -compact
416.It Pa web2
417words from Webster's 2nd International
418.It Pa words
419common words
420.It Pa papers/
421reference databases;
422see
423.Xr refer 1
424.El
425.Pp
426.It Pa doc/
427miscellaneous documentation
428.Pp
429.Bl -tag -width ".Pa legal/" -compact
430.It Pa legal/
431License files for vendor supplied firmware
432.El
433.Pp
434.It Pa examples/
435various examples for users and programmers
436.It Pa games/
437ASCII text files used by various games
438.It Pa groff_font/
439device description file for device name
440.It Pa i18n/
441internationalization databases; see
442.Xr iconv 3
443.It Pa info/
444GNU Info hypertext system
445.It Pa libg++/
446libg++'s genclass prototype/template class files
447.It Pa locale/
448localization files;
449see
450.Xr setlocale 3
451.It Pa man/
452manual pages
453.It Pa me/
454macros for use with the me macro package;
455see
456.Xr me 7
457.It Pa misc/
458misc system-wide ASCII text files
459.Pp
460.Bl -tag -width ".Pa termcap" -compact
461.It Pa termcap
462terminal characteristics database;
463see
464.Xr termcap 5
465.El
466.Pp
467.It Pa mk/
468templates for make;
469see
470.Xr make 1
471.It Pa nls/
472national language support files;
473see
474.Xr mklocale 1
475.It Pa openssl/
476.Pp
477.Bl -tag -width ".Pa man/" -compact
478.It Pa man/
479OpenSSL manual pages
480.El
481.Pp
482.It Pa sendmail/
483sendmail configuration files;
484see
485.Xr sendmail 8
486.It Pa skel/
487example . (dot) files for new accounts
488.It Pa syscons/
489files used by
490.Xr syscons 4
491.Pp
492.Bl -tag -width ".Pa scrnmaps/" -compact
493.It Pa fonts/
494console fonts;
495see
496.Xr vidcontrol 1
497and
498.Xr vidfont 1
499.It Pa keymaps/
500console keyboard maps;
501see
502.Xr kbdcontrol 1
503and
504.Xr kbdmap 1
505.It Pa scrnmaps/
506console screen maps
507.El
508.Pp
509.It Pa tabset/
510tab description files for a variety of terminals; used in
511the termcap file;
512see
513.Xr termcap 5
514.It Pa terminfo/
515compiled
516.Xr terminfo 5
517database files
518.It Pa tmac/
519text processing macros;
520see
521.Xr nroff 1
522and
523.Xr troff 1
524.It Pa vi/
525localization support and utilities for
526.Xr vi 1
527.It Pa zoneinfo/
528timezone configuration information;
529see
530.Xr tzfile 5
531.El
532.Pp
533.It Pa src/
534.Bx ,
535third-party, and/or local source files
536.Pp
537.Bl -tag -width ".Pa nrelease/" -compact
538.It Pa bin/
539source code for files in
540.Pa /bin
541.It Pa contrib/
542source code for contributed software
543.It Pa crypto/
544source code for contributed cryptography software
545.It Pa etc/
546source code for files in
547.Pa /etc
548.It Pa games/
549source code for files in
550.Pa /usr/games
551.It Pa gnu/
552Utilities covered by the GNU General Public License
553.It Pa include/
554source code for files in
555.Pa /usr/include
556.It Pa lib/
557source code for files in
558.Pa /usr/lib
559.It Pa libexec/
560source code for files in
561.Pa /usr/libexec
562.It Pa nrelease/
563files required to produce a
564.Dx
565release
566.It Pa sbin/
567source code for files in
568.Pa /sbin
569.It Pa secure/
570build directory for files in
571.Pa /usr/src/crypto
572.It Pa share/
573source for files in
574.Pa /usr/share
575.It Pa sys/
576kernel source code
577.It Pa tools/
578tools used for maintenance and testing of
579.Dx
580.It Pa usr.bin/
581source code for files in
582.Pa /usr/bin
583.It Pa usr.sbin/
584source code for files in
585.Pa /usr/sbin
586.El
587.El
588.It Pa /var/
589multi-purpose log, temporary, transient, and spool files
590.Pp
591.Bl -tag -width ".Pa preserve/" -compact
592.It Pa account/
593system accounting files
594.Pp
595.Bl -tag -width ".Pa acct" -compact
596.It Pa acct
597execution accounting file;
598see
599.Xr acct 5
600.El
601.Pp
602.It Pa at/
603timed command scheduling files;
604see
605.Xr \&at 1
606.Pp
607.Bl -tag -width ".Pa spool/" -compact
608.It Pa jobs/
609directory containing job files
610.It Pa spool/
611directory containing output spool files
612.El
613.Pp
614.It Pa backups/
615misc. backup files
616.It Pa crash/
617default directory to store kernel crash dumps; see
618.Xr crash 8
619and
620.Xr savecore 8
621.It Pa cron/
622files used by cron;
623see
624.Xr cron 8
625.Pp
626.Bl -tag -width ".Pa tabs/" -compact
627.It Pa tabs/
628crontab files;
629see
630.Xr crontab 5
631.El
632.Pp
633.It Pa db/
634misc. automatically generated system-specific database files
635.It Pa empty/
636empty directory used by
637.Xr sshd 8
638for privilege separation
639.It Pa games/
640misc. game status and score files
641.It Pa hammer/
642per PFS (pseudo file system) snapshots directory for
643.Xr hammer 5
644file systems
645.It Pa log/
646misc. system log files
647.Pp
648.Bl -tag -width ".Pa wtmp" -compact
649.It Pa wtmp
650login/logout log;
651see
652.Xr wtmp 5
653.El
654.Pp
655.It Pa mail/
656user mailbox files
657.It Pa msgs/
658system messages database;
659see
660.Xr msgs 1
661.It Pa preserve/
662temporary home of files preserved after an accidental death
663of an editor;
664see
665.Xr \&ex 1
666.It Pa quotas/
667filesystem quota information files
668.It Pa run/
669system information files describing various info about
670system since it was booted
671.Pp
672.Bl -tag -width ".Pa ppp/" -compact
673.It Pa ppp/
674writable by the
675.Dq network
676group for command connection sockets; see
677.Xr ppp 8
678.It Pa utmp
679database of current users;
680see
681.Xr utmp 5
682.El
683.Pp
684.It Pa rwho/
685rwho data files;
686see
687.Xr rwhod 8 ,
688.Xr rwho 1 ,
689and
690.Xr ruptime 1
691.It Pa spool/
692misc. printer and mail system spooling directories
693.Pp
694.Bl -tag -width ".Pa clientmqueue/" -compact
695.It Pa clientmqueue/
696undelivered submission mail queue;
697see
698.Xr sendmail 8
699.It Pa dma/
700undelivered mail queue;
701see
702.Xr dma 8
703.It Pa ftp/
704commonly
705.Pa ~ftp ;
706the anonymous ftp root directory
707.It Pa mqueue/
708undelivered mail queue;
709see
710.Xr sendmail 8
711.It Pa output/
712line printer spooling directories
713.It Pa uucp/
714uucp spool directory
715.It Pa uucppublic/
716commonly
717.Pa ~uucp ;
718public uucp temporary directory
719.El
720.Pp
721.It Pa tmp/
722temporary files that are kept between system reboots
723.Pp
724.Bl -tag -width ".Pa vi.recover/" -compact
725.It Pa vi.recover/
726the directory where recovery files are stored
727.El
728.Pp
729.It Pa yp/
730the NIS maps
731.El
732.El
733.Sh NOTES
734This manual page documents the default
735.Dx
736filesystem layout, but
737the actual hierarchy on a given system is defined at the system
738administrator's discretion.
739A well-maintained installation will include a customized version of
740this document.
741.Sh SEE ALSO
742.Xr apropos 1 ,
743.Xr find 1 ,
744.Xr finger 1 ,
745.Xr grep 1 ,
746.Xr ls 1 ,
747.Xr whatis 1 ,
748.Xr whereis 1 ,
749.Xr which 1 ,
750.Xr fsck 8
751.Sh HISTORY
752A
753.Nm
754manual page appeared in
755.At v7 .
756