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