xref: /dflybsd-src/share/man/man7/hier.7 (revision 978400d3b04daf8f91ba8bb2dcc382a37ef632f4)
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.17 2008/01/03 18:17:08 swildner Exp $
35.\"
36.Dd January 3, 2008
37.Dt HIER 7
38.Os
39.Sh NAME
40.Nm hier
41.Nd layout of filesystems
42.Sh DESCRIPTION
43A sketch of the filesystem hierarchy.
44.Bl -tag -width ".Pa /modules/"
45.It Pa /
46root directory of the filesystem
47.It Pa /bin/
48user utilities fundamental to both single-user and multi-user environments
49.It Pa /boot/
50programs and configuration files used during operating system bootstrap
51.Pp
52.Bl -tag -width ".Pa defaults/" -compact
53.It Pa defaults/
54default bootstrapping configuration files; see
55.Xr loader.conf 5
56.El
57.It Pa /dev/
58block and character device files
59.Pp
60.Bl -tag -width ".Pa MAKEDEV" -compact
61.It Pa MAKEDEV
62script for creating device files;
63see
64.Xr MAKEDEV 8
65.It Pa fd/
66file descriptor files;
67see
68.Xr \&fd 4
69.El
70.It Pa /etc/
71system configuration files and scripts
72.Pp
73.Bl -tag -width ".Pa bluetooth/" -compact
74.It Pa bluetooth/
75bluetooth configuration files
76.It Pa defaults/
77default system configuration files;
78see
79.Xr rc 8
80.It Pa firmware/
81Firmware image files;
82see
83.Xr firmware 9
84.It Pa isdn/
85isdn4bsd configuration files;
86see
87.Xr isdnd 8
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 namedb/
99named configuration files;
100see
101.Xr named 8
102.It Pa pam.d/
103configuration files for the Pluggable Authentication Modules (PAM)
104library
105.It Pa periodic/
106scripts that are run daily, weekly, and monthly, via
107.Xr cron 8 ;
108see
109.Xr periodic 8
110.It Pa ppp/
111ppp configuration files;
112see
113.Xr ppp 8
114.It Pa rc.d/
115System and daemon startup/control scripts;
116see
117.Xr rc 8
118.It Pa ssh/
119OpenSSH configuration files;
120see
121.Xr ssh 1
122.It Pa ssl/
123OpenSSL configuration files
124.It Pa uucp/
125uucp configuration files;
126see
127.Xr uucp 1
128.El
129.It Pa /home/
130HOME directories of non-root users
131.It Pa /kernel
132pure kernel executable (the operating system loaded into memory
133at boot time).
134.It Pa /mnt/
135empty directory commonly used by
136system administrators as a temporary mount point
137.It Pa /modules/
138loadable kernel modules;
139see
140.Xr kldstat 8
141.It Pa /proc/
142process file system;
143see
144.Xr procfs 5 ,
145.Xr mount_procfs 8
146.It Pa /root/
147root's HOME directory
148.It Pa /sbin/
149system programs and administration utilities
150fundamental to both single-user and multi-user environments
151.It Pa /sys/
152the kernel's source code (usually a symbolic link to
153.Pa /usr/src/sys )
154.It Pa /tmp/
155temporary files that are not guaranteed to persist across system reboots
156.It Pa /usr/
157contains the majority of user utilities and applications
158.Pp
159.Bl -tag -width ".Pa libdata/" -compact
160.It Pa bin/
161common utilities, programming tools, and applications
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 isc/
194ISC utility library libisc include files
195.It Pa isofs/
196.Pp
197.Bl -tag -width ".Pa cd9660/" -compact
198.It Pa cd9660/
199iso9660 filesystem
200.El
201.Pp
202.It Pa libmilter/
203C include files for libmilter,
204the sendmail mail filter API
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 netatalk/
212Appletalk protocol
213.It Pa netatm/
214ATM include files;
215see
216.Xr atm 8
217.It Pa netinet/
218C include files for Internet standard protocols;
219see
220.Xr inet 4
221.It Pa netinet6/
222C include files for Internet protocol version 6;
223see
224.Xr inet6 4
225.It Pa netipx/
226IPX/SPX protocol stacks
227.It Pa netkey/
228kernel key-management service
229.It Pa netnatm/
230NATM include files;
231see
232.Xr natm 4
233.It Pa netns/
234Xerox NS protocols
235.It Pa netsmb/
236SMB/CIFS requester
237.It Pa nfs/
238C include files for NFS (Network File System)
239.It Pa objc/
240Objective C include files
241.It Pa openssl/
242OpenSSL (Cryptography/SSL toolkit) headers
243.It Pa pccard/
244PC-CARD controllers
245.It Pa protocols/
246C include files for Berkeley service protocols
247.It Pa readline/
248get a line from a user, with editing;
249see
250.Xr readline 3
251.It Pa rpc/
252remote procedure calls;
253see
254.Xr rpc 3
255.It Pa rpcsvc/
256definition of RPC service structures; see
257.Xr rpc 3
258.It Pa security/
259PAM; see
260.Xr pam 8
261.It Pa sys/
262system C include files (kernel data structures)
263.It Pa ufs/
264C include files for UFS (The U-word File System)
265.Pp
266.Bl -tag -width ".Pa ffs/" -compact
267.It Pa ffs/
268Fast filesystem
269.It Pa mfs/
270memory file system;
271see
272.Xr mount_mfs 8
273.It Pa ufs/
274UFS filesystem
275.El
276.Pp
277.It Pa vm/
278virtual memory;
279see
280.Xr vmstat 8
281.El
282.Pp
283.It Pa lib/
284archive libraries
285.Pp
286.Bl -tag -width ".Pa compat/" -compact
287.It Pa aout/
288a.out archive libraries
289.It Pa compat/
290shared libraries for compatibility
291.Pp
292.Bl -tag -width ".Pa aout/" -compact
293.It Pa aout/
294a.out backward compatibility libraries
295.El
296.El
297.Pp
298.It Pa libdata/
299misc. utility data files
300.Pp
301.Bl -tag -width ".Pa stallion/" -compact
302.It Pa doscmd/
303files used by doscmd (drivers, fonts, etc.);
304see
305.Xr doscmd 1
306.Pp
307.Bl -tag -width ".Pa fonts/" -compact
308.It Pa fonts/
309fonts used by doscmd
310.El
311.Pp
312.It Pa lint/
313various prebuilt lint libraries;
314see
315.Xr lint 1
316.It Pa msdosfs/
317Character set conversion tables
318.It Pa stallion/
319holds the download firmware images
320.El
321.Pp
322.It Pa libexec/
323system daemons & system utilities (executed by other programs)
324.Pp
325.Bl -tag -width ".Pa binutils217/" -compact
326.It Pa lpr/
327utilities and filters for LP print system;
328see
329.Xr lpr 1
330.It Pa binutils217/
331.Pp
332.Bl -tag -width ".Pa ldscripts/" -compact
333.It Pa ldscripts/
334linker scripts;
335see
336.Xr ld 1
337.El
338.Pp
339.It Pa sendmail/
340the sendmail binary;
341see
342.Xr mailwrapper 8
343and
344.Xr sendmail 8
345.It Pa sm.bin/
346restricted shell for sendmail;
347see
348.Xr smrsh 8
349.It Pa uucp/
350uucp utilities;
351see
352.Xr uucp 1
353.El
354.Pp
355.It Pa local/
356local executables, libraries, etc.
357Within
358.Pa local/ ,
359the general layout sketched out by
360.Xr hier 7
361for
362.Pa /usr
363should be used.  Exceptions are the man directory (directly under
364.Pa local/
365rather than under
366.Pa local/share/ ) ,
367documentation (in
368.Pa share/doc/<app>/ ) ,
369and
370.Pa /usr/local/etc
371.Pf ( mimics
372.Pa /etc ) .
373.It Pa obj/
374architecture-specific target tree produced by building the
375.Pa /usr/src
376tree
377.It Pa pkg/
378default destination directory for the
379.Xr pkgsrc 7
380collection.
381Within
382.Pa pkg/ ,
383the general layout sketched out by
384.Xr hier 7
385for
386.Pa /usr
387should be used.  Exceptions are the man directory (directly under
388.Pa pkg/
389rather than under
390.Pa pkg/share/ ) ,
391documentation (in
392.Pa share/doc/<pkg>/ ) ,
393and
394.Pa /usr/pkg/etc
395.Pf ( mimics
396.Pa /etc ) .
397.It Pa pkgsrc/
398The
399.Xr pkgsrc 7
400collection (optional).
401.It Pa sbin/
402system daemons & system utilities (executed by users)
403.It Pa share/
404architecture-independent files
405.Pp
406.Bl -tag -width ".Pa groff_font/" -compact
407.It Pa calendar/
408a variety of pre-fab calendar files;
409see
410.Xr calendar 1
411.It Pa dict/
412word lists;
413see
414.Xr look 1
415.Pp
416.Bl -tag -width ".Pa papers/" -compact
417.It Pa web2
418words from Webster's 2nd International
419.It Pa words
420common words
421.It Pa papers/
422reference databases;
423see
424.Xr refer 1
425.El
426.Pp
427.It Pa doc/
428miscellaneous documentation;
429.Pp
430.Bl -tag -width ".Pa handbook/" -compact
431.It Pa handbook/
432A copy of the handbook
433.El
434.Pp
435.It Pa examples/
436various examples for users and programmers
437.It Pa games/
438ASCII text files used by various games
439.It Pa groff_font/
440device description file for device name
441.It Pa info/
442GNU Info hypertext system
443.It Pa isdn/
444ISDN
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 sendmail/
476sendmail configuration files;
477see
478.Xr sendmail 8
479.It Pa skel/
480example . (dot) files for new accounts
481.It Pa syscons/
482files used by
483.Xr syscons 4
484.Pp
485.Bl -tag -width ".Pa scrnmaps/" -compact
486.It Pa fonts/
487console fonts;
488see
489.Xr vidcontrol 1
490and
491.Xr vidfont 1
492.It Pa keymaps/
493console keyboard maps;
494see
495.Xr kbdcontrol 1
496and
497.Xr kbdmap 1
498.It Pa scrnmaps/
499console screen maps
500.El
501.Pp
502.It Pa tabset/
503tab description files for a variety of terminals; used in
504the termcap file;
505see
506.Xr termcap 5
507.It Pa tmac/
508text processing macros;
509see
510.Xr nroff 1
511and
512.Xr troff 1
513.It Pa vi/
514localization support and utilities for
515.Xr vi 1
516.It Pa zoneinfo/
517timezone configuration information;
518see
519.Xr tzfile 5
520.El
521.Pp
522.It Pa src/
523.Bx ,
524third-party, and/or local source files
525.Pp
526.Bl -tag -width ".Pa kerberos5/" -compact
527.It Pa bin/
528source code for files in
529.Pa /bin
530.It Pa contrib/
531source code for contributed software
532.It Pa crypto/
533source code for contributed cryptography software
534.It Pa etc/
535source code for files in
536.Pa /etc
537.It Pa games/
538source code for files in
539.Pa /usr/games
540.It Pa gnu/
541Utilities covered by the GNU General Public License
542.It Pa include/
543source code for files in
544.Pa /usr/include
545.It Pa kerberos5/
546source code for kerberos version 5
547.It Pa lib/
548source code for files in
549.Pa /usr/lib
550.It Pa libexec/
551source code for files in
552.Pa /usr/libexec
553.It Pa nrelease/
554files required to produce a
555.Dx
556release
557.It Pa sbin/
558source code for files in
559.Pa /sbin
560.It Pa secure/
561build directory for files in
562.Pa /usr/src/crypto
563.It Pa share/
564source for files in
565.Pa /usr/share
566.It Pa sys/
567kernel source code
568.It Pa tools/
569tools used for maintenance and testing of
570.Dx
571.It Pa usr.bin/
572source code for files in
573.Pa /usr/bin
574.It Pa usr.sbin/
575source code for files in
576.Pa /usr/sbin
577.El
578.El
579.It Pa /var/
580multi-purpose log, temporary, transient, and spool files
581.Pp
582.Bl -tag -width ".Pa preserve/" -compact
583.It Pa account/
584system accounting files
585.Pp
586.Bl -tag -width ".Pa acct" -compact
587.It Pa acct
588execution accounting file;
589see
590.Xr acct 5
591.El
592.Pp
593.It Pa at/
594timed command scheduling files;
595see
596.Xr \&at 1
597.Pp
598.Bl -tag -width ".Pa spool/" -compact
599.It Pa jobs/
600directory containing job files
601.It Pa spool/
602directory containing output spool files
603.El
604.Pp
605.It Pa backups/
606misc. backup files
607.It Pa crash/
608default directory to store kernel crash dumps; see
609.Xr crash 8
610and
611.Xr savecore 8
612.It Pa cron/
613files used by cron;
614see
615.Xr cron 8
616.Pp
617.Bl -tag -width ".Pa tabs/" -compact
618.It Pa tabs/
619crontab files;
620see
621.Xr crontab 5
622.El
623.Pp
624.It Pa db/
625misc. automatically generated system-specific database files
626.It Pa empty/
627empty directory used by
628.Xr sshd 8
629for privilege separation
630.It Pa games/
631misc. game status and score files
632.It Pa heimdal/
633kerberos server databases; see
634.Xr kdc 8
635.It Pa log/
636misc. system log files
637.Pp
638.Bl -tag -width ".Pa wtmp" -compact
639.It Pa wtmp
640login/logout log;
641see
642.Xr wtmp 5
643.El
644.Pp
645.It Pa mail/
646user mailbox files
647.It Pa msgs/
648system messages database;
649see
650.Xr msgs 1
651.It Pa preserve/
652temporary home of files preserved after an accidental death
653of an editor;
654see
655.Xr \&ex 1
656.It Pa quotas/
657filesystem quota information files
658.It Pa run/
659system information files describing various info about
660system since it was booted
661.Pp
662.Bl -tag -width ".Pa ppp/" -compact
663.It Pa ppp/
664writable by the
665.Dq network
666group for command connection sockets; see
667.Xr ppp 8
668.It Pa utmp
669database of current users;
670see
671.Xr utmp 5
672.El
673.Pp
674.It Pa rwho/
675rwho data files;
676see
677.Xr rwhod 8 ,
678.Xr rwho 1 ,
679and
680.Xr ruptime 1
681.It Pa spool/
682misc. printer and mail system spooling directories
683.Pp
684.Bl -tag -width ".Pa clientmqueue/" -compact
685.It Pa clientmqueue/
686undelivered submission mail queue;
687see
688.Xr sendmail 8
689.It Pa ftp/
690commonly
691.Pa ~ftp ;
692the anonymous ftp root directory
693.It Pa mqueue/
694undelivered mail queue;
695see
696.Xr sendmail 8
697.It Pa output/
698line printer spooling directories
699.It Pa uucp/
700uucp spool directory
701.It Pa uucppublic/
702commonly
703.Pa ~uucp ;
704public uucp temporary directory
705.El
706.Pp
707.It Pa tmp/
708temporary files that are kept between system reboots
709.Pp
710.Bl -tag -width ".Pa vi.recover/" -compact
711.It Pa vi.recover/
712the directory where recovery files are stored
713.El
714.Pp
715.It Pa yp/
716the NIS maps
717.El
718.El
719.Sh NOTES
720This manual page documents the default
721.Dx
722filesystem layout, but
723the actual hierarchy on a given system is defined at the system
724administrator's discretion.
725A well-maintained installation will include a customized version of
726this document.
727.Sh SEE ALSO
728.Xr apropos 1 ,
729.Xr find 1 ,
730.Xr finger 1 ,
731.Xr grep 1 ,
732.Xr ls 1 ,
733.Xr whatis 1 ,
734.Xr whereis 1 ,
735.Xr which 1 ,
736.Xr fsck 8
737.Sh HISTORY
738A
739.Nm
740manual page appeared in
741.At v7 .
742