xref: /dflybsd-src/share/man/man7/hier.7 (revision 15b18792cb31eac9631d545d53ee5e9f60145cd3)
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.\"
35.Dd February 5, 2013
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 ".Pa /modules/"
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 ".Pa 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/
59loadable kernel modules;
60see
61.Xr kldstat 8
62.El
63.It Pa /dev/
64block and character device files
65.Pp
66.Bl -tag -width ".Pa fd/" -compact
67.It Pa fd/
68file descriptor files;
69see
70.Xr \&fd 4
71.El
72.It Pa /etc/
73system configuration files and scripts
74.Pp
75.Bl -tag -width ".Pa bluetooth/" -compact
76.It Pa bluetooth/
77bluetooth configuration files
78.It Pa defaults/
79default system configuration files;
80see
81.Xr rc 8
82.It Pa dma/
83.Xr dma 8
84configuration files
85.\".It Pa firmware/
86.\"Firmware image files;
87.\"see
88.\".Xr firmware 9
89.It Pa localtime
90local timezone information;
91see
92.Xr ctime 3
93.It Pa mail/
94Sendmail control files
95.It Pa mtree/
96mtree configuration files;
97see
98.Xr mtree 8
99.It Pa pam.d/
100configuration files for the Pluggable Authentication Modules (PAM)
101library
102.It Pa periodic/
103scripts that are run daily, weekly, and monthly, via
104.Xr cron 8 ;
105see
106.Xr periodic 8
107.It Pa ppp/
108ppp configuration files;
109see
110.Xr ppp 8
111.It Pa rc.d/
112System and daemon startup/control scripts;
113see
114.Xr rc 8
115.It Pa ssh/
116OpenSSH configuration files;
117see
118.Xr ssh 1
119.It Pa ssl/
120OpenSSL configuration files
121.It Pa upgrade/
122Files relevant to system upgrades
123.It Pa uucp/
124uucp configuration files;
125see
126.Xr uucp 1
127.El
128.It Pa /home/
129HOME directories of non-root users
130.It Pa /mnt/
131empty directory commonly used by
132system administrators as a temporary mount point
133.It Pa /pfs/
134pseudo file system directory (on
135.Xr hammer 5
136root file systems)
137.It Pa /proc/
138process file system;
139see
140.Xr procfs 5 ,
141.Xr mount_procfs 8
142.It Pa /root/
143root's HOME directory
144.It Pa /sbin/
145system programs and administration utilities
146fundamental to both single-user and multi-user environments
147.It Pa /sys/
148the kernel's source code (usually a symbolic link to
149.Pa /usr/src/sys )
150.It Pa /tmp/
151temporary files that are not guaranteed to persist across system reboots
152.It Pa /usr/
153contains the majority of user utilities and applications
154.Pp
155.Bl -tag -width ".Pa libdata/" -compact
156.It Pa bin/
157common utilities, programming tools, and applications
158.It Pa games/
159useful and semi-frivolous programs
160.It Pa include/
161standard C include files
162.Pp
163.Bl -tag -width ".Pa libmilter/" -compact
164.It Pa arpa/
165C include files for Internet service protocols
166.It Pa c++/
167C++ include files
168.It Pa cam/
169C include files for the Common Access Methods Layer
170.Pp
171.Bl -tag -width ".Pa scsi/" -compact
172.It Pa scsi/
173The SCSI device on top of CAM
174.El
175.Pp
176.It Pa dev/
177C include files for programming various
178.Dx
179devices
180.It Pa emulation/
181Include Files for various emulation layers
182.It Pa fs/
183.Pp
184.Bl -tag -width ".Pa smbfs/" -compact
185.It Pa smbfs/
186SMB/CIFS filesystem
187.El
188.Pp
189.It Pa isofs/
190.Pp
191.Bl -tag -width ".Pa cd9660/" -compact
192.It Pa cd9660/
193iso9660 filesystem
194.El
195.Pp
196.It Pa libmilter/
197C include files for libmilter,
198the sendmail mail filter API
199.It Pa libprop/
200C include files for libprop
201.It Pa machine/
202machine-specific C include files
203.It Pa msdosfs/
204MS-DOS file system
205.It Pa net/
206misc network C include files
207.It Pa netatm/
208ATM include files;
209see
210.Xr atm 8
211.It Pa netinet/
212C include files for Internet standard protocols;
213see
214.Xr inet 4
215.It Pa netinet6/
216C include files for Internet protocol version 6;
217see
218.Xr inet6 4
219.It Pa netipx/
220IPX/SPX protocol stacks
221.It Pa netkey/
222kernel key-management service
223.It Pa netnatm/
224NATM include files;
225see
226.Xr natm 4
227.It Pa netsmb/
228SMB/CIFS requester
229.It Pa nfs/
230C include files for NFS (Network File System)
231.It Pa objc/
232Objective C include files
233.It Pa openssl/
234OpenSSL (Cryptography/SSL toolkit) headers
235.It Pa pcap/
236Packet Capture (libpcap) headers;
237see
238.Xr pcap 3
239.It Pa pccard/
240PC-CARD controllers
241.It Pa protocols/
242C include files for Berkeley service protocols
243.It Pa readline/
244get a line from a user, with editing;
245see
246.Xr readline 3
247.It Pa rpc/
248remote procedure calls;
249see
250.Xr rpc 3
251.It Pa rpcsvc/
252definition of RPC service structures; see
253.Xr rpc 3
254.It Pa security/
255PAM; see
256.Xr pam 8
257.It Pa sys/
258system C include files (kernel data structures)
259.It Pa ufs/
260C include files for UFS (The U-word File System)
261.Pp
262.Bl -tag -width ".Pa ffs/" -compact
263.It Pa ffs/
264Fast filesystem
265.It Pa mfs/
266memory file system;
267see
268.Xr mount_mfs 8
269.It Pa ufs/
270UFS filesystem
271.El
272.Pp
273.It Pa vm/
274virtual memory;
275see
276.Xr vmstat 8
277.El
278.Pp
279.It Pa lib/
280archive libraries
281.Pp
282.Bl -tag -width ".Pa compat/" -compact
283.It Pa aout/
284a.out archive libraries
285.It Pa compat/
286shared libraries for compatibility
287.Pp
288.Bl -tag -width ".Pa aout/" -compact
289.It Pa aout/
290a.out backward compatibility libraries
291.El
292.It Pa engines/
293OpenSSL dynamic engines
294.El
295.Pp
296.It Pa libdata/
297misc. utility data files
298.It Pa libexec/
299system daemons & system utilities (executed by other programs)
300.Pp
301.Bl -tag -width ".Pa binutils221/" -compact
302.It Pa binutils221/
303.Pp
304.Bl -tag -width ".Pa ldscripts/" -compact
305.It Pa ldscripts/
306linker scripts;
307see
308.Xr ld 1
309.El
310.Pp
311.It Pa binutils222/
312.Pp
313.Bl -tag -width ".Pa ldscripts/" -compact
314.It Pa ldscripts/
315linker scripts;
316see
317.Xr ld 1
318.El
319.Pp
320.It Pa lpr/
321utilities and filters for LP print system;
322see
323.Xr lpr 1
324.It Pa sendmail/
325the sendmail binary;
326see
327.Xr mailwrapper 8
328and
329.Xr sendmail 8
330.It Pa sm.bin/
331restricted shell for sendmail;
332see
333.Xr smrsh 8
334.It Pa uucp/
335uucp utilities;
336see
337.Xr uucp 1
338.El
339.Pp
340.It Pa local/
341local executables, libraries, etc.
342Within
343.Pa local/ ,
344the general layout sketched out by
345.Xr hier 7
346for
347.Pa /usr
348should be used.
349Exceptions are the
350.Pa man/
351directory (directly under
352.Pa local/
353rather than under
354.Pa local/share/ ) ,
355documentation (in
356.Pa share/doc/<app>/ ) ,
357and
358.Pa /usr/local/etc
359.Pf ( mimics
360.Pa /etc ) .
361.It Pa obj/
362architecture-specific target tree produced by building the
363.Pa /usr/src
364tree
365.It Pa pkg/
366default destination directory for the
367.Xr pkgsrc 7
368collection.
369Within
370.Pa pkg/ ,
371the general layout sketched out by
372.Xr hier 7
373for
374.Pa /usr
375should be used.
376Exceptions are the
377.Pa man/
378directory (directly under
379.Pa pkg/
380rather than under
381.Pa pkg/share/ ) ,
382documentation (in
383.Pa share/doc/<pkg>/ ) ,
384and
385.Pa /usr/pkg/etc
386.Pf ( mimics
387.Pa /etc ) .
388.It Pa pkgsrc/
389The
390.Xr pkgsrc 7
391collection (optional).
392.It Pa sbin/
393system daemons & system utilities (executed by users)
394.It Pa share/
395architecture-independent files
396.Pp
397.Bl -tag -width ".Pa groff_font/" -compact
398.It Pa calendar/
399a variety of pre-fab calendar files;
400see
401.Xr calendar 1
402.It Pa dict/
403word lists;
404see
405.Xr look 1
406.Pp
407.Bl -tag -width ".Pa papers/" -compact
408.It Pa web2
409words from Webster's 2nd International
410.It Pa words
411common words
412.It Pa papers/
413reference databases;
414see
415.Xr refer 1
416.El
417.Pp
418.It Pa doc/
419miscellaneous documentation
420.Bl -tag -width ".Pa legal/" -compact
421.It Pa legal/
422License files for vendor supplied firmware
423.El
424.Pp
425.It Pa examples/
426various examples for users and programmers
427.It Pa games/
428ASCII text files used by various games
429.It Pa groff_font/
430device description file for device name
431.It Pa i18n/
432internationalization databases; see
433.Xr iconv 3
434.It Pa info/
435GNU Info hypertext system
436.It Pa libg++/
437libg++'s genclass prototype/template class files
438.It Pa locale/
439localization files;
440see
441.Xr setlocale 3
442.It Pa man/
443manual pages
444.It Pa me/
445macros for use with the me macro package;
446see
447.Xr me 7
448.It Pa misc/
449misc system-wide ASCII text files
450.Pp
451.Bl -tag -width ".Pa termcap" -compact
452.It Pa termcap
453terminal characteristics database;
454see
455.Xr termcap 5
456.El
457.Pp
458.It Pa mk/
459templates for make;
460see
461.Xr make 1
462.It Pa nls/
463national language support files;
464see
465.Xr mklocale 1
466.It Pa openssl/
467.Pp
468.Bl -tag -width ".Pa man/" -compact
469.It Pa man/
470OpenSSL manual pages
471.El
472.Pp
473.It Pa sendmail/
474sendmail configuration files;
475see
476.Xr sendmail 8
477.It Pa skel/
478example . (dot) files for new accounts
479.It Pa syscons/
480files used by
481.Xr syscons 4
482.Pp
483.Bl -tag -width ".Pa scrnmaps/" -compact
484.It Pa fonts/
485console fonts;
486see
487.Xr vidcontrol 1
488and
489.Xr vidfont 1
490.It Pa keymaps/
491console keyboard maps;
492see
493.Xr kbdcontrol 1
494and
495.Xr kbdmap 1
496.It Pa scrnmaps/
497console screen maps
498.El
499.Pp
500.It Pa tabset/
501tab description files for a variety of terminals; used in
502the termcap file;
503see
504.Xr termcap 5
505.It Pa terminfo/
506compiled
507.Xr terminfo 5
508database files
509.It Pa tmac/
510text processing macros;
511see
512.Xr nroff 1
513and
514.Xr troff 1
515.It Pa vi/
516localization support and utilities for
517.Xr vi 1
518.It Pa zoneinfo/
519timezone configuration information;
520see
521.Xr tzfile 5
522.El
523.Pp
524.It Pa src/
525.Bx ,
526third-party, and/or local source files
527.Pp
528.Bl -tag -width ".Pa nrelease/" -compact
529.It Pa bin/
530source code for files in
531.Pa /bin
532.It Pa contrib/
533source code for contributed software
534.It Pa crypto/
535source code for contributed cryptography software
536.It Pa etc/
537source code for files in
538.Pa /etc
539.It Pa games/
540source code for files in
541.Pa /usr/games
542.It Pa gnu/
543Utilities covered by the GNU General Public License
544.It Pa include/
545source code for files in
546.Pa /usr/include
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 hammer/
633per PFS (pseudo file system) snapshots directory for
634.Xr hammer 5
635file systems
636.It Pa log/
637misc. system log files
638.Pp
639.Bl -tag -width ".Pa wtmp" -compact
640.It Pa wtmp
641login/logout log;
642see
643.Xr wtmp 5
644.El
645.Pp
646.It Pa mail/
647user mailbox files
648.It Pa msgs/
649system messages database;
650see
651.Xr msgs 1
652.It Pa preserve/
653temporary home of files preserved after an accidental death
654of an editor;
655see
656.Xr \&ex 1
657.It Pa quotas/
658filesystem quota information files
659.It Pa run/
660system information files describing various info about
661system since it was booted
662.Pp
663.Bl -tag -width ".Pa ppp/" -compact
664.It Pa ppp/
665writable by the
666.Dq network
667group for command connection sockets; see
668.Xr ppp 8
669.It Pa utmp
670database of current users;
671see
672.Xr utmp 5
673.El
674.Pp
675.It Pa rwho/
676rwho data files;
677see
678.Xr rwhod 8 ,
679.Xr rwho 1 ,
680and
681.Xr ruptime 1
682.It Pa spool/
683misc. printer and mail system spooling directories
684.Pp
685.Bl -tag -width ".Pa clientmqueue/" -compact
686.It Pa clientmqueue/
687undelivered submission mail queue;
688see
689.Xr sendmail 8
690.It Pa dma/
691undelivered mail queue;
692see
693.Xr dma 8
694.It Pa ftp/
695commonly
696.Pa ~ftp ;
697the anonymous ftp root directory
698.It Pa mqueue/
699undelivered mail queue;
700see
701.Xr sendmail 8
702.It Pa output/
703line printer spooling directories
704.It Pa uucp/
705uucp spool directory
706.It Pa uucppublic/
707commonly
708.Pa ~uucp ;
709public uucp temporary directory
710.El
711.Pp
712.It Pa tmp/
713temporary files that are kept between system reboots
714.Pp
715.Bl -tag -width ".Pa vi.recover/" -compact
716.It Pa vi.recover/
717the directory where recovery files are stored
718.El
719.Pp
720.It Pa yp/
721the NIS maps
722.El
723.El
724.Sh NOTES
725This manual page documents the default
726.Dx
727filesystem layout, but
728the actual hierarchy on a given system is defined at the system
729administrator's discretion.
730A well-maintained installation will include a customized version of
731this document.
732.Sh SEE ALSO
733.Xr apropos 1 ,
734.Xr find 1 ,
735.Xr finger 1 ,
736.Xr grep 1 ,
737.Xr ls 1 ,
738.Xr whatis 1 ,
739.Xr whereis 1 ,
740.Xr which 1 ,
741.Xr fsck 8
742.Sh HISTORY
743A
744.Nm
745manual page appeared in
746.At v7 .
747