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