Miscellaneous mdoc fixes.
[dragonfly/vkernel-mp.git] / share / man / man7 / hier.7
blob40df7355d4cda41487f5a99adfe4506ddc6ba755
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: src/share/man/man7/hier.7,v 1.29.2.17 2003/01/13 21:43:50 ceri Exp $
34 .\" $DragonFly: src/share/man/man7/hier.7,v 1.11 2007/05/19 17:32:13 swildner Exp $
35 .\"
36 .Dd August 23, 2006
37 .Dt HIER 7
38 .Os
39 .Sh NAME
40 .Nm hier
41 .Nd layout of filesystems
42 .Sh DESCRIPTION
43 A sketch of the filesystem hierarchy.
44 .Bl -tag -width ".It Pa /modules/"
45 .It Pa /
46 root directory of the filesystem
47 .It Pa /bin/
48 user utilities fundamental to both single-user and multi-user environments
49 .It Pa /boot/
50 programs and configuration files used during operating system bootstrap
51 .Pp
52 .Bl -tag -width ".It Pa defaults/" -compact
53 .It Pa defaults/
54 default bootstrapping configuration files; see
55 .Xr loader.conf 5
56 .El
57 .It Pa /dev/
58 block and character device files
59 .Pp
60 .Bl -tag -width ".It Pa MAKEDEV" -compact
61 .It Pa MAKEDEV
62 script for creating device files;
63 see
64 .Xr MAKEDEV 8
65 .It Pa fd/
66 file descriptor files;
67 see
68 .Xr \&fd 4
69 .El
70 .It Pa /etc/
71 system configuration files and scripts
72 .Pp
73 .Bl -tag -width ".It Pa defaults/" -compact
74 .It Pa defaults/
75 default system configuration files;
76 see
77 .Xr rc 8
78 .It Pa isdn/
79 isdn4bsd configuration files;
80 see
81 .Xr isdnd 8
82 .It Pa localtime
83 local timezone information;
84 see
85 .Xr ctime 3
86 .It Pa mail/
87 Sendmail control files
88 .It Pa mtree/
89 mtree configuration files;
90 see
91 .Xr mtree 8
92 .It Pa namedb/
93 named configuration files;
94 see
95 .Xr named 8
96 .It Pa periodic/
97 scripts that are run daily, weekly, and monthly, via
98 .Xr cron 8 ;
99 see
100 .Xr periodic 8
101 .It Pa ppp/
102 ppp configuration files;
104 .Xr ppp 8
105 .It Pa ssl/
106 OpenSSL configuration files
107 .It Pa uucp/
108 uucp configuration files;
110 .Xr uucp 1
112 .It Pa /home/
113 HOME directories of non-root users
114 .It Pa /kernel
115 pure kernel executable (the operating system loaded into memory
116 at boot time).
117 .It Pa /mnt/
118 empty directory commonly used by
119 system administrators as a temporary mount point
120 .It Pa /modules/
121 loadable kernel modules;
123 .Xr kldstat 8
124 .It Pa /proc/
125 process file system;
127 .Xr procfs 5 ,
128 .Xr mount_procfs 8
129 .It Pa /root/
130 root's HOME directory
131 .It Pa /sbin/
132 system programs and administration utilities
133 fundamental to both single-user and multi-user environments
134 .It Pa /sys/
135 the kernel's source code (usually a symbolic link to
136 .Pa /usr/src/sys )
137 .It Pa /tmp/
138 temporary files that are not guaranteed to persist across system reboots
139 .It Pa /usr/
140 contains the majority of user utilities and applications
142 .Bl -tag -width ".It Pa libdata/" -compact
143 .It Pa bin/
144 common utilities, programming tools, and applications
145 .It Pa games/
146 useful and semi-frivolous programs
147 .It Pa include/
148 standard C include files
150 .Bl -tag -width ".It Pa libmilter/" -compact
151 .It Pa arpa/
152 C include files for Internet service protocols
153 .It Pa c++/
154 C++ include files
155 .It Pa cam/
156 C include files for the Common Access Methods Layer
158 .Bl -tag -width ".It Pa scsi/" -compact
159 .It Pa scsi/
160 The SCSI device on top of CAM
163 .It Pa dev/
164 C include files for programming various
166 devices
167 .It Pa emulation/
168 Include Files for various emulation layers
169 .It Pa fs/
171 .Bl -tag -width ".It Pa smbfs/" -compact
172 .It Pa smbfs/
173 SMB/CIFS filesystem
176 .It Pa isc/
177 ISC utility library libisc include files
178 .It Pa isofs/
180 .Bl -tag -width ".It Pa cd9660/" -compact
181 .It Pa cd9660/
182 iso9660 filesystem
185 .It Pa libmilter/
186 C include files for libmilter,
187 the sendmail mail filter API
188 .It Pa machine/
189 machine-specific C include files
190 .It Pa msdosfs/
191 MS-DOS file system
192 .It Pa net/
193 misc network C include files
194 .It Pa netatalk/
195 Appletalk protocol
196 .It Pa netatm/
197 ATM include files;
199 .Xr atm 8
200 .It Pa netinet/
201 C include files for Internet standard protocols;
203 .Xr inet 4
204 .It Pa netinet6/
205 C include files for Internet protocol version 6;
207 .Xr inet6 4
208 .It Pa netipx/
209 IPX/SPX protocol stacks
210 .It Pa netkey/
211 kernel key-management service
212 .It Pa netnatm/
213 NATM include files;
215 .Xr natm 4
216 .It Pa netns/
217 Xerox NS protocols
218 .It Pa netsmb/
219 SMB/CIFS requester
220 .It Pa nfs/
221 C include files for NFS (Network File System)
222 .It Pa objc/
223 Objective C include files
224 .It Pa openssl/
225 OpenSSL (Cryptography/SSL toolkit) headers
226 .It Pa pccard/
227 PC-CARD controllers
228 .It Pa protocols/
229 C include files for Berkeley service protocols
230 .It Pa readline/
231 get a line from a user, with editing;
233 .Xr readline 3
234 .It Pa rpc/
235 remote procedure calls;
237 .Xr rpc 3
238 .It Pa rpcsvc/
239 definition of RPC service structures; see
240 .Xr rpc 3
241 .It Pa security/
242 PAM; see
243 .Xr pam 8
244 .It Pa sys/
245 system C include files (kernel data structures)
246 .It Pa ufs/
247 C include files for UFS (The U-word File System)
249 .Bl -tag -width ".It Pa ffs/" -compact
250 .It Pa ffs/
251 Fast filesystem
252 .It Pa mfs/
253 memory file system;
255 .Xr mount_mfs 8
256 .It Pa ufs/
257 UFS filesystem
260 .It Pa vm/
261 virtual memory;
263 .Xr vmstat 8
266 .It Pa lib/
267 archive libraries
269 .Bl -tag -width ".It Pa compat/" -compact
270 .It Pa aout/
271 a.out archive libraries
272 .It Pa compat/
273 shared libraries for compatibility
275 .Bl -tag -width ".It Pa aout/" -compact
276 .It Pa aout/
277 a.out backward compatibility libraries
281 .It Pa libdata/
282 misc. utility data files
284 .Bl -tag -width ".It Pa stallion/" -compact
285 .It Pa doscmd/
286 files used by doscmd (drivers, fonts, etc.);
288 .Xr doscmd 1
290 .Bl -tag -width ".It Pa fonts/" -compact
291 .It Pa fonts/
292 fonts used by doscmd
295 .It Pa lint/
296 various prebuilt lint libraries;
298 .Xr lint 1
299 .It Pa msdosfs/
300 Character set conversion tables
301 .It Pa stallion/
302 holds the download firmware images
305 .It Pa libexec/
306 system daemons & system utilities (executed by other programs)
308 .Bl -tag -width ".It Pa binutils215/" -compact
309 .It Pa lpr/
310 utilities and filters for LP print system;
312 .Xr lpr 1
313 .It Pa binutils215/
315 .Bl -tag -width ".It Pa ldscripts/" -compact
316 .It Pa ldscripts/
317 linker scripts;
319 .Xr ld 1
322 .It Pa sendmail/
323 the sendmail binary;
325 .Xr mailwrapper 8
327 .Xr sendmail 8
328 .It Pa sm.bin/
329 restricted shell for sendmail;
331 .Xr smrsh 8
332 .It Pa uucp/
333 uucp utilities;
335 .Xr uucp 1
338 .It Pa local/
339 local executables, libraries, etc.
340 Within
341 .Pa local/ ,
342 the general layout sketched out by
343 .Xr hier 7
345 .Pa /usr
346 should be used.  Exceptions are the man directory (directly under
347 .Pa local/
348 rather than under
349 .Pa local/share/ ) ,
350 documentation (in
351 .Pa share/doc/<app>/ ) ,
353 .Pa /usr/local/etc
354 .Pf ( mimics
355 .Pa /etc ) .
356 .It Pa obj/
357 architecture-specific target tree produced by building the
358 .Pa /usr/src
359 tree
360 .It Pa pkg/
361 default destination directory for the
362 .Xr pkgsrc 7
363 collection.
364 Within
365 .Pa pkg/ ,
366 the general layout sketched out by
367 .Xr hier 7
369 .Pa /usr
370 should be used.  Exceptions are the man directory (directly under
371 .Pa pkg/
372 rather than under
373 .Pa pkg/share/ ) ,
374 documentation (in
375 .Pa share/doc/<pkg>/ ) ,
377 .Pa /usr/pkg/etc
378 .Pf ( mimics
379 .Pa /etc ) .
380 .It Pa pkgsrc/
382 .Xr pkgsrc 7
383 collection (optional).
384 .It Pa sbin/
385 system daemons & system utilities (executed by users)
386 .It Pa share/
387 architecture-independent files
389 .Bl -tag -width ".It Pa groff_font/" -compact
390 .It Pa calendar/
391 a variety of pre-fab calendar files;
393 .Xr calendar 1
394 .It Pa dict/
395 word lists;
397 .Xr look 1
399 .Bl -tag -width ".It Pa papers/" -compact
400 .It Pa web2
401 words from Webster's 2nd International
402 .It Pa words
403 common words
404 .It Pa papers/
405 reference databases;
407 .Xr refer 1
410 .It Pa doc/
411 miscellaneous documentation;
413 .Bl -tag -width ".It Pa handbook/" -compact
414 .It Pa handbook/
415 A copy of the handbook
418 .It Pa examples/
419 various examples for users and programmers
420 .It Pa games/
421 ASCII text files used by various games
422 .It Pa groff_font/
423 device description file for device name
424 .It Pa info/
425 GNU Info hypertext system
426 .It Pa isdn/
427 ISDN
428 .It Pa libg++/
429 libg++'s genclass prototype/template class files
430 .It Pa locale/
431 localization files;
433 .Xr setlocale 3
434 .It Pa man/
435 manual pages
436 .It Pa me/
437 macros for use with the me macro package;
439 .Xr me 7
440 .It Pa misc/
441 misc system-wide ASCII text files
443 .Bl -tag -width ".It Pa termcap" -compact
444 .It Pa termcap
445 terminal characteristics database;
447 .Xr termcap 5
450 .It Pa mk/
451 templates for make;
453 .Xr make 1
454 .It Pa nls/
455 national language support files;
457 .Xr mklocale 1
458 .It Pa sendmail/
459 sendmail configuration files;
461 .Xr sendmail 8
462 .It Pa skel/
463 example . (dot) files for new accounts
464 .It Pa syscons/
465 files used by
466 .Xr syscons 4
468 .Bl -tag -width ".It Pa scrnmaps/" -compact
469 .It Pa fonts/
470 console fonts;
472 .Xr vidcontrol 1
474 .Xr vidfont 1
475 .It Pa keymaps/
476 console keyboard maps;
478 .Xr kbdcontrol 1
480 .Xr kbdmap 1
481 .It Pa scrnmaps/
482 console screen maps
485 .It Pa tabset/
486 tab description files for a variety of terminals; used in
487 the termcap file;
489 .Xr termcap 5
490 .It Pa tmac/
491 text processing macros;
493 .Xr nroff 1
495 .Xr troff 1
496 .It Pa vi/
497 localization support and utilities for
498 .Xr vi 1
499 .It Pa zoneinfo/
500 timezone configuration information;
502 .Xr tzfile 5
505 .It Pa src/
506 .Bx ,
507 third-party, and/or local source files
509 .Bl -tag -width ".It Pa kerberos5/" -compact
510 .It Pa bin/
511 source code for files in
512 .Pa /bin
513 .It Pa contrib/
514 source code for contributed software
515 .It Pa crypto/
516 source code for contributed cryptography software
517 .It Pa etc/
518 source code for files in
519 .Pa /etc
520 .It Pa games/
521 source code for files in
522 .Pa /usr/games
523 .It Pa gnu/
524 Utilities covered by the GNU General Public License
525 .It Pa include/
526 source code for files in
527 .Pa /usr/include
528 .It Pa kerberos5/
529 source code for kerberos version 5
530 .It Pa lib/
531 source code for files in
532 .Pa /usr/lib
533 .It Pa libexec/
534 source code for files in
535 .Pa /usr/libexec
536 .It Pa nrelease/
537 files required to produce a
539 release
540 .It Pa sbin/
541 source code for files in
542 .Pa /sbin
543 .It Pa secure/
544 build directory for files in
545 .Pa /usr/src/crypto
546 .It Pa share/
547 source for files in
548 .Pa /usr/share
549 .It Pa sys/
550 kernel source code
551 .It Pa tools/
552 tools used for maintenance and testing of
554 .It Pa usr.bin/
555 source code for files in
556 .Pa /usr/bin
557 .It Pa usr.sbin/
558 source code for files in
559 .Pa /usr/sbin
562 .It Pa /var/
563 multi-purpose log, temporary, transient, and spool files
565 .Bl -tag -width ".It Pa preserve/" -compact
566 .It Pa account/
567 system accounting files
569 .Bl -tag -width ".It Pa acct" -compact
570 .It Pa acct
571 execution accounting file;
573 .Xr acct 5
576 .It Pa at/
577 timed command scheduling files;
579 .Xr \&at 1
581 .Bl -tag -width ".It Pa spool/" -compact
582 .It Pa jobs/
583 directory containing job files
584 .It Pa spool/
585 directory containing output spool files
588 .It Pa backups/
589 misc. backup files
590 .It Pa crash/
591 default directory to store kernel crash dumps; see
592 .Xr crash 8
594 .Xr savecore 8
595 .It Pa cron/
596 files used by cron;
598 .Xr cron 8
600 .Bl -tag -width ".It Pa tabs/" -compact
601 .It Pa tabs/
602 crontab files;
604 .Xr crontab 5
607 .It Pa db/
608 misc. automatically generated system-specific database files
609 .It Pa empty/
610 empty directory used by
611 .Xr sshd 8
612 for privilege separation
613 .It Pa games/
614 misc. game status and score files
615 .It Pa heimdal/
616 kerberos server databases; see
617 .Xr kdc 8
618 .It Pa log/
619 misc. system log files
621 .Bl -tag -width ".It Pa wtmp" -compact
622 .It Pa wtmp
623 login/logout log;
625 .Xr wtmp 5
628 .It Pa mail/
629 user mailbox files
630 .It Pa msgs/
631 system messages database;
633 .Xr msgs 1
634 .It Pa preserve/
635 temporary home of files preserved after an accidental death
636 of an editor;
638 .Xr \&ex 1
639 .It Pa quotas/
640 filesystem quota information files
641 .It Pa run/
642 system information files describing various info about
643 system since it was booted
645 .Bl -tag -width ".It Pa ppp/" -compact
646 .It Pa ppp/
647 writable by the
648 .Dq network
649 group for command connection sockets; see
650 .Xr ppp 8
651 .It Pa utmp
652 database of current users;
654 .Xr utmp 5
657 .It Pa rwho/
658 rwho data files;
660 .Xr rwhod 8 ,
661 .Xr rwho 1 ,
663 .Xr ruptime 1
664 .It Pa spool/
665 misc. printer and mail system spooling directories
667 .Bl -tag -width ".It Pa clientmqueue/" -compact
668 .It Pa clientmqueue/
669 undelivered submission mail queue;
671 .Xr sendmail 8
672 .It Pa ftp/
673 commonly
674 .Pa ~ftp ;
675 the anonymous ftp root directory
676 .It Pa mqueue/
677 undelivered mail queue;
679 .Xr sendmail 8
680 .It Pa output/
681 line printer spooling directories
682 .It Pa uucp/
683 uucp spool directory
684 .It Pa uucppublic/
685 commonly
686 .Pa ~uucp ;
687 public uucp temporary directory
690 .It Pa tmp/
691 temporary files that are kept between system reboots
693 .Bl -tag -width ".It Pa vi.recover/" -compact
694 .It Pa vi.recover/
695 the directory where recovery files are stored
698 .It Pa yp/
699 the NIS maps
702 .Sh NOTES
703 This manual page documents the default
705 filesystem layout, but
706 the actual hierarchy on a given system is defined at the system
707 administrator's discretion.
708 A well-maintained installation will include a customized version of
709 this document.
710 .Sh SEE ALSO
711 .Xr apropos 1 ,
712 .Xr find 1 ,
713 .Xr finger 1 ,
714 .Xr grep 1 ,
715 .Xr ls 1 ,
716 .Xr whatis 1 ,
717 .Xr whereis 1 ,
718 .Xr which 1 ,
719 .Xr fsck 8
720 .Sh HISTORY
723 manual page appeared in
724 .At v7 .