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