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