xref: /freebsd/share/man/man7/hier.7 (revision 5521ff5a4d1929056e7ffc982fac3341ca54df7c)
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. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"	@(#)hier.7	8.1 (Berkeley) 6/5/93
33.\" $FreeBSD$
34.\"
35.Dd June 5, 1993
36.Dt HIER 7
37.Os
38.Sh NAME
39.Nm hier
40.Nd layout of filesystems
41.Sh DESCRIPTION
42A sketch of the filesystem hierarchy.
43.Bl -tag -width "/stand/"
44.It Pa /
45root directory of the filesystem
46.It Pa /bin/
47user utilities fundamental to both single-user and multi-user environments
48.It Pa /boot/
49programs and configuration files used during operating system bootstrap
50.Pp
51.Bl -tag -width defaults/ -compact
52.It Pa defaults/
53default bootstrapping configuration files; see
54.Xr loader.conf 5
55.It Pa kernel/
56pure kernel executable (the operating system loaded into memory
57at boot time).
58.It Pa modules/
59third-part loadable kernel modules;
60see
61.Xr kldstat 8
62.El
63.It Pa /cdrom/
64default mount point for CD-ROM drives
65.It Pa /compat/
66normally a link to
67.Pa /usr/compat .
68If not, then the
69.Pa /usr/compat
70comments apply.
71.It Pa /dev/
72block and character device files
73.Pp
74.Bl -tag -width MAKEDEV -compact
75.It Pa MAKEDEV
76script for creating device files;
77see
78.Xr MAKEDEV 8
79.It Pa fd/
80file descriptor files;
81see
82.Xr \&fd 4
83.El
84.It Pa /dist/
85mount point used by
86.Xr sysinstall 8
87.It Pa /etc/
88system configuration files and scripts
89.Pp
90.Bl -tag -width "disklabels/" -compact
91.It Pa defaults/
92default system configuration files;
93see
94.Xr rc 8
95.It Pa gnats/
96gnats configuration files;
97see
98.Xr send-pr 1
99.It Pa isdn/
100isdn4bsd configuration files;
101see
102.Xr isdnd 8
103.It Pa kerberosIV/
104configuration files for kerberos version IV;
105see
106.Xr kerberos 1
107.It Pa localtime
108local timezone information;
109see
110.Xr ctime 3
111.It Pa mail/
112Sendmail control files
113.It Pa mtree/
114mtree configuration files;
115see
116.Xr mtree 8
117.It Pa namedb/
118named configuration files;
119see
120.Xr named 8
121.It Pa periodic/
122scripts that are run daily, weekly, and monthly, via
123.Xr cron 8 ;
124see
125.Xr periodic 8
126.It Pa ppp/
127ppp configuration files;
128see
129.Xr ppp 8
130.It Pa ssl/
131OpenSSL configuration files
132.It Pa uucp/
133uucp configuration files;
134see
135.Xr uucp 1
136.El
137.It Pa /mnt/
138empty directory commonly used by
139system administrators as a temporary mount point
140.It Pa /proc/
141process file system;
142see
143.Xr procfs 5 ,
144.Xr mount_procfs 8
145.It Pa /root/
146root's HOME directory
147.It Pa /sbin/
148system programs and administration utilities
149fundamental to both single-user and multi-user environments
150.It Pa /stand/
151programs used in a standalone environment
152.It Pa /tmp/
153temporary files
154.It Pa /usr/
155contains the majority of user utilities and applications
156.Pp
157.Bl -tag -width "libdata/" -compact
158.It Pa bin/
159common utilities, programming tools, and applications
160.It Pa compat/
161files needed to support binary compatability with other operating systems,
162such as Linux
163.It Pa games/
164useful and semi-frivolous programs
165.It Pa include/
166standard C include files
167.Pp
168.Bl -tag -width "kerberosIV/" -compact
169.It Pa arpa/
170C include files for Internet service protocols
171.It Pa cam/
172C include files for the Common Access Methods Layer
173.Bl -tag -width "kerberosIV/" -compact
174.It scsi/
175The SCSI device on top of CAM
176.El
177.It Pa dev/
178C include files for programming various
179.Fx
180devices
181.Bl -tag -width "kerberosIV/" -compact
182.It Pa ic/
183Various header files describing driver- and bus-independent
184hardware circuits
185.It Pa ppbus/
186The parallel port bus;
187see
188.Xr ppbus 4
189.It Pa usb/
190The USB subsystem
191.It Pa wi/
192The
193.Xr wi 4
194WaveLAN driver
195.El
196.It Pa fs/
197.Bl -tag -width "kerberosIV/" -compact
198.It Pa fdescfs/
199per-process file descriptors file system
200.It Pa fifofs/
201.St -p1003.1
202FIFOs file system
203.It Pa msdosfs/
204MS-DOS file system
205.It Pa ntfs/
206NTFS file system
207.It Pa nullfs/
208loopback file system
209.It Pa nwfs/
210NetWare file system
211.It Pa portalfs/
212portal file system
213.It Pa procfs/
214process file system
215.It Pa smbfs/
216SMB/CIFS filesystem
217.It Pa umapfs/
218alternate uid/gid mappings file system
219.It Pa unionfs
220union file system
221.El
222.It Pa g++/
223GNU C++ include files
224.Bl -tag -width "kerberosIV/" -compact
225.It Pa std/
226GNU C++ libstdc++ include files
227.El
228.It Pa isc/
229ISC utility library libisc include files
230.It Pa isofs/
231.Bl -tag -width "kerberosIV/" -compact
232.It Pa cd9660/
233iso9660 filesystem
234.El
235.It Pa kerberosIV/
236C include files for kerberos authentication package;
237see
238.Xr kerberos 1
239.It Pa machine/
240machine-specific C include files
241.It Pa net/
242misc network C include files
243.It Pa netatalk/
244Appletalk protocol
245.It Pa netatm/
246ATM include files;
247see
248.Xr atm 8
249.It Pa netinet/
250C include files for Internet standard protocols;
251see
252.Xr inet 4
253.It Pa netinet6/
254C include files for Internet protocol version 6;
255see
256.Xr inet6 4
257.It Pa netipx/
258IPX/SPX protocol stacks
259.It Pa netkey/
260kernel key-management service
261.It Pa netns/
262Xerox NS protocols
263.It Pa netsmb/
264SMB/CIFS requester
265.It Pa netnatm/
266NATM include files;
267see
268.Xr natm 4
269.It Pa nfs/
270C include files for NFS (Network File System)
271.It Pa objc/
272Objective C include files
273.It Pa openssl/
274OpenSSL (Cryptography/SSL toolkit) headers
275.It Pa pccard/
276PC-CARD controllers
277.It Pa posix4/
278POSIX real-time extensions includes;
279see
280.Xr p1003_1b 9
281.It Pa protocols/
282C include files for Berkeley service protocols
283.It Pa readline/
284get a line from a user, with editing;
285see
286.Xr readline 3
287.It Pa rpc/
288remote procedure calls;
289see
290.Xr rpc 3
291.It Pa rpcsvc/
292definition of RPC service structures; see
293.Xr rpc 3
294.It Pa security/
295PAM; see
296.Xr pam 8
297.It Pa ss/
298MIT SIPB
299.Sq subsystem
300library, part of Kerberos IV.
301.It Pa sys/
302system C include files (kernel data structures)
303.\" .It Pa tcl/
304.\" Tcl language;
305.\" see
306.\" .Xr Tcl n
307.\" .Bl -tag -width "kerberosIV/" -compact
308.\" .It Pa generic/
309.\" ???
310.\" .It Pa unix/
311.\" ???
312.\" .El
313.It Pa ufs/
314C include files for UFS (The U-word File System)
315.Bl -tag -width "kerberosIV/" -compact
316.It Pa ffs/
317Fast filesystem
318.It Pa ufs/
319UFS filesystem
320.El
321.It Pa vm/
322virtual memory;
323see
324.Xr vmstat 8
325.El
326.Pp
327.It Pa lib/
328archive libraries
329.Bl -tag -width Fl -compact
330.It Pa aout/
331a.out archive libraries
332.It Pa compat/
333shared libraries for compatibility
334.Bl -tag -width Fl -compact
335.It Pa aout/
336a.out backward compatibility libraries
337.El
338.El
339.Pp
340.It Pa libdata/
341misc. utility data files
342.Bl -tag -width Fl -compact
343.It Pa doscmd/
344files used by doscmd (drivers, fonts, etc.);
345see
346.Xr doscmd 1
347.Bl -tag -width 6n -compact
348.It Pa fonts/
349fonts used by doscmd
350.El
351.It Pa gcc/
352???
353.It Pa ldscripts/
354linker scripts;
355see
356.Xr ld 1
357.It Pa lint/
358various prebuilt lint libraries;
359see
360.Xr lint 1
361.It Pa msdosfs/
362Character set conversion tables
363.It Pa perl/
364.Bl -tag -width Fl -compact
365.It Pa 5.00503/
366contains Perl modules for Perl version 5.00503;
367see
368.Xr perl 1
369.El
370.It Pa stallion/
371holds the download firmware images
372.El
373.Pp
374.It Pa libexec/
375system daemons & system utilities (executed by other programs)
376.Bl -tag -width Fl -compact
377.It Pa aout/
378utilities to manipulate a.out executables
379.It Pa elf/
380utilities to manipulate ELF executables
381.It Pa lpr/
382utilities and filters for LP print system;
383see
384.Xr lpr 1
385.It Pa sm.bin/
386restricted shell for sendmail;
387see
388.Xr smrsh 8
389.It Pa uucp/
390uucp utilities;
391see
392.Xr uucp 1
393.El
394.Pp
395.It Pa local/
396local executables, libraries, etc.
397Also used as the default destination for the
398.Fx
399ports framework.
400Within local/, the general layout sketched out by
401.Xr hier 7
402for /usr
403should be used.  Exceptions are the man directory (directly under local/
404rather than under local/share/), ports documentation (in share/doc/<port>/),
405and /usr/local/etc (mimics /etc).
406.It Pa obj/
407architecture-specific target tree produced by building the /usr/src tree
408.It Pa ports/
409The
410.Fx
411ports collection (optional).
412.It Pa sbin/
413system daemons & system utilities (executed by users)
414.It Pa share/
415architecture-independent files
416.Pp
417.Bl -tag -width "calendar/" -compact
418.It Pa calendar/
419a variety of pre-fab calendar files;
420see
421.Xr calendar 1
422.It Pa dict/
423word lists;
424see
425.Xr look 1
426.Pp
427.Bl -tag -width Fl -compact
428.It Pa words
429common words
430.It Pa web2
431words from Webster's 2nd International
432.It Pa papers/
433reference databases;
434see
435.Xr refer 1
436.It Pa special/
437custom word lists;
438see
439.Xr spell 1
440.El
441.Pp
442.It Pa doc/
443miscellaneous documentation;
444source for most of the printed
445.Bx
446manuals (available
447from the
448.Tn USENIX
449association)
450.Bl -tag -width Fl -compact
451.It Pa FAQ/
452Frequently Asked Questions
453.It Pa IPv6/
454implementation notes for IPv6
455.It Pa bind/
456documents pertaining to BIND (the Berkeley Internet Name Domain)
457.It Pa es/
458Spanish translations of documents in /usr/share/doc
459.It Pa handbook/
460.Fx
461Handbook
462.It Pa ja/
463Japanese translations of documents in /usr/share/doc
464.It Pa ncurses/
465HTML documents pertaining to ncurses;
466see
467.Xr ncurses 3X
468.It Pa ntp/
469HTML documents pertaining to the Network Time Protocol
470.It Pa papers/
471UNIX Papers
472.It Pa psd/
473UNIX Programmer's Supplementary Documents
474.It Pa ru/
475Russian translations of documents in /usr/share/doc
476.It Pa smm/
477UNIX System Manager's Manual
478.It Pa tutorials/
479.Fx
480tutorials
481.It Pa usd/
482UNIX User's Supplementary Documents
483.It Pa zh/
484Chinese translations of documents in /usr/share/doc
485.El
486.Pp
487.It Pa examples/
488various examples for users and programmers
489.It Pa games/
490ASCII text files used by various games
491.It Pa groff_font/
492device description file for device name
493.It Pa info/
494GNU Info hypertext system
495.It Pa isdn/
496ISDN
497.It Pa libg++/
498libg++'s genclass prototype/template class files
499.It Pa locale/
500localization files;
501see
502.Xr setlocale 3
503.It Pa man/
504manual pages
505.It Pa me/
506macros for use with the me macro package;
507see
508.Xr me 7
509.It Pa misc/
510misc system-wide ASCII text files
511.Bl -tag -width Fl -compact
512.It Pa fonts/
513???
514.It Pa pcvtfonts/
515pcvt fonts;
516see
517.Xr pcvt 4
518.It Pa termcap
519terminal characteristics database;
520see
521.Xr termcap 5
522.El
523.It Pa mk/
524templates for make;
525see
526.Xr make 1
527.It Pa nls/
528national language support files;
529see
530.Xr mklocale 1
531.It Pa pcvt/
532pcvt documentation and etc examples;
533see
534.Xr pcvt 4
535.It Pa perl/
536perl library files;
537see
538.Xr perl 1
539.It Pa sendmail/
540sendmail configuration files;
541see
542.Xr sendmail 8
543.It Pa skel/
544example . (dot) files for new accounts
545.It Pa syscons/
546files used by syscons;
547see
548.Xr syscons 4
549.Bl -tag -width "scrnmaps/xx" -compact
550.It Pa fonts/
551console fonts;
552see
553.Xr vidcontrol 1
554and
555.Xr vidfont 1
556.It Pa keymaps/
557console keyboard maps;
558see
559.Xr kbdcontrol 1
560and
561.Xr kbdmap 1
562.It Pa scrnmaps/
563console screen maps
564.El
565.It Pa tabset/
566tab description files for a variety of terminals; used in
567the termcap file;
568see
569.Xr termcap 5
570.It Pa tmac/
571text processing macros;
572see
573.Xr nroff 1
574and
575.Xr troff 1
576.It Pa vi/
577localization support and utilities for
578.Xr vi 1
579.It Pa zoneinfo/
580timezone configuration information;
581see
582.Xr tzfile 5
583.El
584.It Pa src/
585BSD, third-party, and/or local source files
586.Pp
587.Bl -tag -width "kerberosIV/" -compact
588.It Pa bin/
589source code for files in /bin
590.It Pa contrib/
591source code for contributed software
592.It Pa crypto/
593source code for contributed cryptography software
594.It Pa etc/
595source code for files in /etc
596.It Pa games/
597source code for files in /usr/games
598.It Pa gnu/
599Utilities covered by the GNU General Public License
600.It Pa include/
601source code for files in /usr/include
602.It Pa kerberosIV/
603source code for kerberos version IV
604.It Pa lib/
605source code for files in /usr/lib
606.It Pa libexec/
607source code for files in /usr/libexec
608.It Pa release/
609files required to produce a
610.Fx
611release
612.It Pa sbin/
613source code for files in /sbin
614.It Pa secure/
615build directory for files in /usr/src/crypto
616.It Pa share/
617source for files in /usr/share
618.It Pa sys/
619kernel source code
620.It Pa tools/
621tools used for maintenance and testing of
622.Fx
623.It Pa usr.bin/
624source code for files in /usr/bin
625.It Pa usr.sbin/
626source code for files in /usr/sbin
627.El
628.Pp
629.It Pa X11R6/
630X11R6 distribution executables, libraries, etc (optional).
631.Bl -tag -width "include/" -compact
632.It Pa bin/
633X11R6 binaries (servers, utilities, local packages/ports).
634.It Pa etc/
635X11R6 configuration files and scripts.
636.It Pa include/
637X11R6 include files.
638.It Pa lib/
639X11R6 libraries.
640.It Pa man/
641X11R6 manual pages.
642.It Pa share/
643architecture-independent files.
644.El
645.El
646.It Pa /var/
647multi-purpose log, temporary, transient, and spool files
648.Pp
649.Bl -tag -width "preserve/" -compact
650.It Pa account/
651system accounting files
652.Pp
653.Bl -tag -width Fl -compact
654.It Pa acct
655execution accounting file;
656see
657.Xr acct 5
658.El
659.Pp
660.It Pa at/
661timed command scheduling files;
662see
663.Xr \&at 1
664.Bl -tag -width "preserve/" -compact
665.It Pa jobs/
666directory containing job files
667.It Pa spool/
668directory containing output spool files
669.El
670.Pp
671.It Pa backups/
672misc. backup files
673.It Pa crash/
674default directory to store kernel crash dumps; see
675.Xr crash 8
676and
677.Xr savecore 8
678.It Pa cron/
679files used by cron;
680see
681.Xr cron 8
682.Bl -tag -width "preserve/" -compact
683.It Pa tabs/
684crontab files;
685see
686.Xr crontab 5
687.El
688.Pp
689.It Pa db/
690misc. automatically generated system-specific database files
691.It Pa games/
692misc. game status and score files
693.It Pa log/
694misc. system log files
695.Pp
696.Bl -tag -width Fl -compact
697.It Pa wtmp
698login/logout log;
699see
700.Xr wtmp 5
701.El
702.Pp
703.It Pa mail/
704user mailbox files
705.It Pa preserve/
706temporary home of files preserved after an accidental death
707of an editor;
708see
709.Xr \&ex 1
710.It Pa msgs/
711system messages database;
712see
713.Xr msgs 1
714.It Pa quotas/
715filesystem quota information files
716.It Pa run/
717system information files describing various info about
718system since it was booted
719.Pp
720.Bl -tag -width Fl -compact
721.It Pa utmp
722database of current users;
723see
724.Xr utmp 5
725.El
726.Pp
727.It Pa rwho/
728rwho data files;
729see
730.Xr rwhod 8 ,
731.Xr rwho 1 ,
732and
733.Xr ruptime 1
734.It Pa spool/
735misc. printer and mail system spooling directories
736.Pp
737.Bl -tag -width Fl -compact
738.It Pa ftp/
739commonly ~ftp; the anonymous ftp root directory
740.It Pa mqueue/
741undelivered mail queue;
742see
743.Xr sendmail 8
744.It Pa output/
745line printer spooling directories
746.It Pa secretmail/
747secretmail spool directory;
748see
749.Xr xget 1
750.It Pa uucp/
751uucp spool directory
752.It Pa uucppublic/
753commonly ~uucp; public uucp temporary directory
754.El
755.Pp
756.It Pa tmp/
757temporary files that are kept between system reboots
758.Bl -tag -width Fl -compact
759.It Pa vi.recover/
760the directory where recovery files are stored
761.El
762.It Pa yp/
763the NIS maps
764.El
765.El
766.Sh SEE ALSO
767.Xr apropos 1 ,
768.Xr find 1 ,
769.Xr finger 1 ,
770.Xr grep 1 ,
771.Xr ls 1 ,
772.Xr whatis 1 ,
773.Xr whereis 1 ,
774.Xr which 1 ,
775.Xr fsck 8
776.Sh HISTORY
777A
778.Nm
779manual page appeared in
780.At v7 .
781