xref: /freebsd/share/man/man7/hier.7 (revision 77a0943ded95b9e6438f7db70c4a28e4d93946d4)
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 Li /
45root directory of the filesystem
46.It Li /bin/
47user utilities fundamental to both single-user and multi-user environments
48.It Li /boot/
49programs and configuration files used during operating system bootstrap
50.Pp
51.Bl -tag -width defaults/ -compact
52.It Li defaults/
53default bootstrapping configuration files; see
54.Xr loader.conf 5
55.It Li kernel/
56pure kernel executable (the operating system loaded into memory
57at boot time).
58.It Li modules/
59third-part loadable kernel modules;
60see
61.Xr kldstat 8
62.El
63.It Li /dev/
64block and character device files
65.Pp
66.Bl -tag -width MAKEDEV -compact
67.It Li MAKEDEV
68script for creating device files;
69see
70.Xr MAKEDEV 8
71.It Li fd/
72file descriptor files;
73see
74.Xr \&fd 4
75.El
76.It Li /etc/
77system configuration files and scripts
78.Pp
79.Bl -tag -width "disklabels/" -compact
80.It Li defaults/
81default system configuration files;
82see
83.Xr rc 8
84.It Li gnats/
85gnats configuration files;
86see
87.Xr send-pr 1
88.It Li isdn/
89isdn4bsd configuration files;
90see
91.Xr isdnd 8
92.It Li kerberosIV/
93configuration files for the kerberos version IV;
94see
95.Xr kerberos 1
96.It Li localtime
97local timezone information;
98see
99.Xr ctime 3
100.It Li mail/
101spam-filtering information
102.It Li mtree/
103mtree configuration files;
104see
105.Xr mtree 8
106.It Li namedb/
107named configuration files;
108see
109.Xr named 8
110.It Li periodic/
111scripts that are run daily, weekly, and monthly, via
112.Xr cron 8 ;
113see
114.Xr periodic 8
115.It Li ppp/
116.Xr ppp 8
117ppp configuration files;
118see
119.Xr ppp 8
120.It Li ssl/
121OpenSSL configuration files
122.It Li uucp/
123uucp configuration files;
124see
125.Xr uucp 1
126.El
127.It Li /mnt/
128empty directory commonly used by
129system administrators as a temporary mount point
130.It Li /proc/
131process file system;
132see
133.Xr procfs 5 ,
134.Xr mount_procfs 8
135.It Li /root/
136root's HOME directory
137.It Li /sbin/
138system programs and administration utilities
139fundamental to both single-user and multi-user environments
140.It Li /stand/
141programs used in a standalone environment
142.It Li /tmp/
143temporary files, usually a
144.Xr mfs 8
145memory-based filesystem (the contents
146of /tmp are usually NOT preserved across a system reboot)
147.It Li /usr/
148contains the majority of user utilities and applications
149.Pp
150.Bl -tag -width "libdata/" -compact
151.It Li bin/
152common utilities, programming tools, and applications
153.It Li games/
154useful and semi-frivolous programs
155.It Li include/
156standard C include files
157.Pp
158.Bl -tag -width "kerberosIV/" -compact
159.It Li arpa/
160C include files for Internet service protocols
161.It Li cam/
162C include files for the Common Access Methods Layer
163.Bl -tag -width "kerberosIV/" -compact
164.It scsi/
165The SCSI device on top of CAM
166.El
167.It Li dev/
168.Bl -tag -width "kerberosIV/" -compact
169.It usb/
170The USB subsystem
171.El
172.It Li g++/
173GNU C++ include files
174.Bl -tag -width "kerberosIV/" -compact
175.It Li std/
176GNU C++ libstdc++ include files
177.El
178.It Li isofs/
179.Bl -tag -width "kerberosIV/" -compact
180.It Li cd9660/
181iso9660 filesystem
182.El
183.It Li kerberosIV/
184C include files for kerberos authentication package;
185see
186.Xr kerberos 1
187.It Li machine/
188machine specific C include files
189.It Li msdosfs/
190MS-DOS file system
191.It Li net/
192misc network C include files
193.It Li netatalk/
194Appletalk protocol
195.It Li netatm/
196ATM include files;
197see
198.Xr atm 8
199.It Li netinet/
200C include files for Internet standard protocols;
201see
202.Xr inet 4
203.It Li netinet6/
204C include files for Internet protocol version 6;
205see
206.Xr inet6 4
207.It Li netipx/
208IPX/SPX protocol stacks
209.It Li netkey/
210kernel key-management service
211.It Li netns/
212Xerox NS protocols
213.It Li nfs/
214C include files for NFS (Network File System)
215.It Li objc/
216Objective C include files
217.It Li openssl/
218OpenSSL (Cryptography/SSL toolkit) headers
219.It Li pccard/
220PC-CARD controllers
221.It Li posix4/
222POSIX real-time extensions includes;
223see
224.Xr p1003_1b 9
225.It Li protocols/
226C include files for Berkeley service protocols
227.It Li readline/
228get a line from a user with editing;
229see
230.Xr readline 3
231.It Li rpc/
232remote procedure calls;
233see
234.Xr rpc 3
235.It Li rpcsvc/
236defintion of RPC service structures; see
237.Xr rpc 3 .
238.It Li security/
239PAM; see
240.Xr pam 8
241.It Li ss/
242MIT SIPB
243.Sq subsystem
244library, part of Kerberos IV.
245.It Li sys/
246system C include files (kernel data structures)
247.\" .It Li tcl/
248.\" Tcl language;
249.\" see
250.\" .Xr Tcl n
251.\" .Bl -tag -width "kerberosIV/" -compact
252.\" .It Li generic/
253.\" ???
254.\" .It Li unix/
255.\" ???
256.\" .El
257.It Li ufs/
258C include files for UFS (The U-word File System)
259.Bl -tag -width "kerberosIV/" -compact
260.It Li ffs/
261Fast filesystem
262.It Li mfs/
263memory file system;
264see
265.Xr mount_mfs 8
266.It Li ufs/
267UFS filesystem
268.El
269.It Li vm/
270virtual memory;
271see
272.Xr vmstat 8
273.El
274.Pp
275.It Li lib/
276archive libraries
277.Bl -tag -width Fl -compact
278.It Li aout/
279a.out archive libraries
280.It Li compat/
281shared libraries for compatibility
282.Bl -tag -width Fl -compact
283.It Li aout/
284a.out backward compatibility libraries
285.El
286.El
287.Pp
288.It Li libdata/
289misc. utility data files
290.Bl -tag -width Fl -compact
291.It Li gcc/
292???
293.It Li lint/
294various prebuilt lint libraries;
295see
296.Xr lint 1
297.It Li msdosfs/
298Chatacter set conversion tables
299.It Li perl/
300.Bl -tag -width Fl -compact
301.It Li 5.00503/
302contains Perl modules for Perl version 5.00503;
303see
304.Xr perl 1
305.El
306.It Li stallion/
307holding the download firmware images
308.It Li tcl
309???;
310see
311.Xr Tcl n
312.El
313.Pp
314.It Li libexec/
315system daemons & system utilities (executed by other programs)
316.Bl -tag -width Fl -compact
317.It Li aout/
318utilities to manipulate a.out executables.
319.It Li elf/
320utilities to manipulate ELF executables.
321.It Li lpr/
322utilities and filters for LP print system;
323see
324.Xr lpr 1
325.It Li sm.bin/
326restricted shell for sendmail;
327see
328.Xr smrsh 8
329.It Li uucp/
330uucp utilities;
331see
332.Xr uucp 1
333.El
334.Pp
335.It Li local/
336local executables, libraries, etc.
337Also used as the default destination for the
338.Fx
339ports framework.
340Within local/, the general layout sketched out by
341.Xr hier 7
342for /usr
343should be used.  Exceptions are the man directory is directly under local/
344rather than under local/share/.  Ports documentation is in share/doc/<port>/
345.It Li obj/
346architecture-specific target tree produced by building the /usr/src tree
347.It Li ports
348The
349.Fx
350ports collection (optional).
351.It Li sbin/
352system daemons & system utilities (executed by users)
353.It Li share/
354architecture-independent files
355.Pp
356.Bl -tag -width "calendar/" -compact
357.It Li calendar/
358a variety of pre-fab calendar files;
359see
360.Xr calendar 1
361.It Li dict/
362word lists;
363see
364.Xr look 1
365.Pp
366.Bl -tag -width Fl -compact
367.It Li words
368common words
369.It Li web2
370words from Webster's 2nd International
371.It Li papers/
372reference databases;
373see
374.Xr refer 1
375.It Li special/
376custom word lists;
377see
378.Xr spell 1
379.El
380.Pp
381.It Li doc/
382misc documentation;
383src for most of the printed
384.Bx
385manuals (available
386from the
387.Tn USENIX
388association)
389.Bl -tag -width Fl -compact
390.It Li FAQ/
391Frequently Asked Questions
392.It Li handbook/
393.Fx
394Handbook
395.It Li papers/
396UNIX Papers
397.It Li psd/
398UNIX Programmer's Supplementary Documents
399.It Li smm/
400UNIX System Manager's Manual
401.It Li usd/
402UNIX User's Supplementary Documents
403.El
404.Pp
405.It Li examples/
406various examples for users and programmers
407.It Li games/
408ASCII text files used by various games
409.It Li groff_font/
410device description file for device name
411.It Li info/
412GNU Info hypertext system
413.It Li isdn/
414ISDN
415.It Li libg++/
416libg++'s genclass prototype/template class files
417.It Li locale/
418internationalization files;
419see
420.Xr setlocale 3
421.It Li man/
422manual pages
423.It Li me/
424macros for use with the me macro package
425.It Li misc/
426misc system-wide ASCII text files
427.Bl -tag -width Fl -compact
428.It Li fonts/
429???
430.It Li pcvtfonts/
431pcvt fonts;
432see
433.Xr pcvt 4
434.It Li termcap
435terminal characteristics database;
436see
437.Xr termcap 5
438.El
439.It Li mk/
440templates for make;
441see
442.Xr make 1
443.It Li nls/
444national language support files;
445see
446.Xr mklocale 1
447.It Li pcvt/
448pcvt documentation and etc examples;
449see
450.Xr pcvt 4
451.It Li perl/
452perl library files;
453see
454.Xr perl 1
455.It Li skel/
456example . (dot) files for new accounts
457.It Li syscons/
458console staff;
459see
460.Xr syscons 4
461.Bl -tag -width "scrnmaps/xx" -compact
462.It Li fonts/
463console fonts;
464see
465.Xr vidcontrol 1
466and
467.Xr vidfont 1
468.It Li keymaps/
469console keyboard maps;
470see
471.Xr kbdcontrol 1
472and
473.Xr kbdmap 1
474.It Li scrnmaps/
475console screen maps
476.El
477.It Li tabset/
478tab description files for a variety of terminals; used in
479the termcap file;
480see
481.Xr termcap 5
482.It Li tmac/
483text processing macros;
484see
485.Xr nroff 1
486and
487.Xr troff 1
488.It Li vi/
489localization support and utilities for
490.Xr vi 1 .
491.It Li zoneinfo/
492timezone configuration information;
493see
494.Xr tzfile 5
495.El
496.It Li src/
497BSD and/or local source files
498.Pp
499.Bl -tag -width "kerberosIV/" -compact
500.It Li bin/
501src for files in /bin
502.It Li contrib/
503src for file from contributed software
504.It Li crypto
505DES
506.It Li etc/
507src for files in /etc
508.It Li games/
509src for files in /usr/games
510.It Li gnu/
511Utilities covered by the GNU Public License
512.It Li include/
513src for files in /usr/include
514.It Li kerberosIV/
515src for kerberos version IV
516.It Li lib/
517src for files in /usr/lib
518.It Li libexec/
519src for files in /usr/libexec
520.It Li release/
521files required to produce a
522.Fx
523release
524.It Li sbin/
525src for files in /sbin
526.It Li secure
527FreeSec sources
528.It Li share/
529src for files in /usr/share
530.It Li sys/
531kernel src files
532.It Li tools/
533tools used for maintenance and testing of
534.Fx
535.It Li usr.bin/
536src for files in /usr/bin
537.It Li usr.sbin/
538src for files in /usr/sbin
539.El
540.Pp
541.It Li X11R6/
542X11R6 distribution executables, libraries, etc (optional).
543.Bl -tag -width "include/" -compact
544.It Li bin/
545X11R6 binaries (servers, utilities, local packages/ports).
546.It Li etc/
547X11R6 configuration files and scripts.
548.It Li include/
549X11R6 include files.
550.It Li lib/
551X11R6 libraries.
552.It Li man/
553X11R6 manual pages.
554.It Li share/
555architecture independant files.
556.El
557.El
558.It Li /var/
559multi-purpose log, temporary, transient, and spool files
560.Pp
561.Bl -tag -width "preserve/" -compact
562.It Li account/
563system accounting files
564.Pp
565.Bl -tag -width Fl -compact
566.It Li acct
567execution accounting file;
568see
569.Xr acct 5
570.El
571.Pp
572.It Li at/
573timed command scheduling files;
574see
575.Xr \&at 1
576.Bl -tag -width "preserve/" -compact
577.It Li jobs/
578directory containing job files
579.It Li spool/
580directory containing output spool files
581.El
582.Pp
583.It Li backups/
584misc. backup files
585.It Li crash/
586default drectory to store kernel crash dumps; see
587.Xr crash 8
588and
589.Xr savecore 8 .
590.It Li cron/
591.Bl -tag -width "preserve/" -compact
592.It Li log
593cron log files;
594see
595.Xr cron 8
596.It Li tabs/
597crontab files;
598see
599.Xr crontab 5
600.El
601.Pp
602.It Li db/
603misc. automatically generated system-specific database files
604.It Li games/
605misc. game status and score files
606.It Li log/
607misc. system log files
608.Pp
609.Bl -tag -width Fl -compact
610.It Li wtmp
611login/logout log;
612see
613.Xr wtmp 5
614.El
615.Pp
616.It Li mail/
617user mailbox files
618.It Li preserve/
619temporary home of files preserved after an accidental death
620of an editor;
621see
622.Xr \&ex 1
623.It Li msgs/
624system messages database;
625see
626.Xr msgs 1
627.It Li quotas/
628filesystem quota information files
629.It Li run/
630system information files describing various info about
631system since it was booted
632.Pp
633.Bl -tag -width Fl -compact
634.It Li utmp
635database of current users;
636see
637.Xr utmp 5
638.El
639.Pp
640.It Li rwho/
641rwho data files;
642see
643.Xr rwhod 8 ,
644.Xr rwho 1 ,
645and
646.Xr ruptime 1
647.It Li spool/
648misc. printer and mail system spooling directories
649.Pp
650.Bl -tag -width Fl -compact
651.It Li ftp/
652commonly ~ftp; the anonymous ftp root directory
653.It Li mqueue/
654undelivered mail queue;
655see
656.Xr sendmail 8
657.It Li output/
658line printer spooling directories
659.It Li secretmail/
660secretmail spool directory;
661see
662.Xr xget 1
663.It Li uucp/
664uucp spool directory
665.It Li uucppublic/
666commonly ~uucp; public uucp temporary directory
667.El
668.Pp
669.It Li tmp/
670temporary files that are kept between system reboots
671.Bl -tag -width Fl -compact
672.It Li vi.recover/
673the directory where recovery files are stored
674.El
675.It Li yp
676the NIS maps
677.El
678.El
679.Sh SEE ALSO
680.Xr apropos 1 ,
681.Xr find 1 ,
682.Xr finger 1 ,
683.Xr grep 1 ,
684.Xr ls 1 ,
685.Xr whatis 1 ,
686.Xr whereis 1 ,
687.Xr which 1 ,
688.Xr fsck 8
689.Sh HISTORY
690A
691.Nm
692manual page appeared in
693.At v7 .
694