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. Neither the name of the University nor the names of its contributors 13.\" may be used to endorse or promote products derived from this software 14.\" without specific prior written permission. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)hier.7 8.1 (Berkeley) 6/5/93 29.\" $FreeBSD$ 30.\" 31.Dd September 10, 2019 32.Dt HIER 7 33.Os 34.Sh NAME 35.Nm hier 36.Nd layout of file systems 37.Sh DESCRIPTION 38A sketch of the file system hierarchy. 39.Bl -tag -width "/libexec/" 40.It Pa / 41root directory of the file system 42.It Pa /bin/ 43user utilities fundamental to both single-user and multi-user environments 44.It Pa /boot/ 45programs and configuration files used during operating system bootstrap 46.Pp 47.Bl -tag -width "defaults/" -compact 48.It Pa defaults/ 49default bootstrapping configuration files; see 50.Xr loader.conf 5 51.It Pa dtb/ 52Compiled flattened device tree (FDT) files; see 53.Xr fdt 4 54and 55.Xr dtc 1 56.It Pa efi/ 57Mount point for EFI System Partition (ESP) on UEFI systems. 58.It Pa firmware/ 59loadable kernel modules containing binary firmware for hardware that needs 60firmware downloaded to it to function 61.It Pa kernel/ 62pure kernel executable (the operating system loaded into memory 63at boot time) and kernel modules 64.It Pa modules/ 65third-party loadable kernel modules; 66see 67.Xr kldstat 8 68.It Pa overlays/ 69Compiled flattened device tree (FDT) overlays; see 70.Xr fdt 4 71and 72.Xr dtc 1 73.It Pa zfs/ 74.Xr zfs 8 75zpool cache files 76.El 77.It Pa /cdrom/ 78default mount point for CD-ROM drives 79.It Pa /compat/ 80normally a link to 81.Pa /usr/compat . 82If not, then the 83.Pa /usr/compat 84comments apply 85.It Pa /dev/ 86device special files managed by 87.Xr devfs 5 88.Pp 89.Bl -tag -width "defaults/" -compact 90.It Pa fd/ 91file descriptor files; 92see 93.Xr \&fd 4 94.El 95.It Pa /etc/ 96system configuration files and scripts 97.Pp 98.Bl -tag -width "defaults/" -compact 99.It Pa defaults/ 100default system configuration files; 101see 102.Xr rc 8 103.It Pa bluetooth/ 104bluetooth configuration files 105.It Pa localtime 106local timezone information; 107see 108.Xr ctime 3 109.It Pa mail/ 110Sendmail control files 111.It Pa mtree/ 112mtree configuration files; 113see 114.Xr mtree 8 115.It Pa pam.d/ 116configuration files for the Pluggable Authentication Modules (PAM) 117library 118.It Pa periodic/ 119scripts that are run daily, weekly, and monthly, via 120.Xr cron 8 ; 121see 122.Xr periodic 8 123.It Pa rc.d/ 124system and daemon startup/control scripts; 125see 126.Xr rc 8 127.It Pa security/ 128OpenBSM audit configuration files; 129see 130.Xr audit 8 131.It Pa ppp/ 132ppp configuration files; 133see 134.Xr ppp 8 135.It Pa ssh/ 136OpenSSH configuration files; 137see 138.Xr ssh 1 139.It Pa ssl/ 140OpenSSL configuration files 141.El 142.It Pa /lib/ 143critical system libraries needed for binaries in 144.Pa /bin 145and 146.Pa /sbin 147.Pp 148.Bl -tag -width "defaults/" -compact 149.It Pa casper/ 150service-specific 151.Xr libcasper 3 152Capsicum support libraries 153.It Pa geom/ 154class-specific libraries for the 155.Xr geom 8 156utility 157.It Pa nvmecontrol/ 158vendor-specific libraries to extend the 159.Xr nvmecontrol 8 160utility 161.El 162.It Pa /libexec/ 163critical system utilities needed for binaries in 164.Pa /bin 165and 166.Pa /sbin 167.It Pa /media/ 168contains subdirectories to be used as mount points 169for removable media such as CDs, USB drives, and 170floppy disks 171.It Pa /mnt/ 172empty directory commonly used by 173system administrators as a temporary mount point 174.It Pa /net/ 175automounted NFS shares; 176see 177.Xr auto_master 5 178.It Pa /proc/ 179process file system; 180see 181.Xr procfs 5 182.It Pa /rescue/ 183statically linked programs for emergency recovery; 184see 185.Xr rescue 8 186.It Pa /root/ 187root's HOME directory 188.It Pa /sbin/ 189system programs and administration utilities 190fundamental to both single-user and multi-user environments 191.It Pa /tmp/ 192temporary files that are not guaranteed to persist across system reboots 193.It Pa /usr/ 194contains the majority of user utilities and applications 195.Pp 196.Bl -tag -width "defaults/" -compact 197.It Pa bin/ 198common utilities, programming tools, and applications 199.It Pa compat/ 200files needed to support binary compatibility with other operating systems, 201such as Linux 202.It Pa include/ 203standard C include files 204.Pp 205.Bl -tag -width "kerberos5/" -compact 206.It Pa arpa/ 207C include files for Internet service protocols 208.It Pa bsnmp/ 209C include files for the SNMP daemon 210.It Pa c++/ 211C++ include files 212.It Pa cam/ 213C include files for the Common Access Methods Layer 214.Bl -tag -width "kerberos5/" -compact 215.It Pa scsi/ 216SCSI device on top of CAM 217.El 218.It Pa dev/ 219C include files for programming various 220.Fx 221devices 222.Bl -tag -width "kerberos5/" -compact 223.It Pa ic/ 224various header files describing driver- and bus-independent 225hardware circuits 226.It Pa ofw/ 227Open Firmware support 228.It Pa pbio/ 2298255 PPI cards; 230see 231.Xr pbio 4 232.It Pa ppbus/ 233parallel port bus; 234see 235.Xr ppbus 4 236.It Pa usb/ 237USB subsystem 238.It Pa wi/ 239.Xr wi 4 240WaveLAN driver 241.El 242.It Pa fs/ 243.Bl -tag -width "kerberos5/" -compact 244.It Pa fdescfs/ 245per-process file descriptors file system 246.It Pa msdosfs/ 247MS-DOS file system 248.It Pa nfs/ 249C include files for NFS (Network File System) version 2, 3 and 4 250.It Pa nullfs/ 251loopback file system 252.It Pa procfs/ 253process file system 254.It Pa smbfs/ 255SMB/CIFS file system 256.It Pa udf/ 257UDF file system 258.It Pa unionfs 259union file system 260.El 261.It Pa geom/ 262GEOM framework 263.Bl -tag -width "kerberos5/" -compact 264.It Pa concat/ 265CONCAT GEOM class 266.It Pa gate/ 267GATE GEOM class 268.It Pa mirror/ 269MIRROR GEOM class 270.It Pa nop/ 271NOP GEOM class 272.It Pa raid3/ 273RAID3 GEOM class 274.It Pa stripe/ 275STRIPE GEOM class 276.El 277.It Pa libmilter/ 278C include files for libmilter, 279the 280.Xr sendmail 8 281mail filter API 282.It Pa machine/ 283machine-specific C include files 284.It Pa net/ 285miscellaneous network C include files 286.Bl -tag -width Fl -compact 287.It Pa altq/ 288C include files for alternate queueing 289.El 290.It Pa net80211/ 291C include files for 802.11 wireless networking; 292see 293.Xr net80211 4 294.It Pa netinet/ 295C include files for Internet standard protocols; 296see 297.Xr inet 4 298.It Pa netinet6/ 299C include files for Internet protocol version 6; 300see 301.Xr inet6 4 302.It Pa netipsec/ 303kernel key-management service; 304see 305.Xr ipsec 4 306.It Pa netsmb/ 307SMB/CIFS requester 308.It Pa nfs/ 309C include files for NFS (Network File System) version 2 and 3 (legacy) 310.It Pa openssl/ 311OpenSSL (Cryptography/SSL toolkit) headers 312.It Pa protocols/ 313C include files for Berkeley service protocols 314.It Pa rpc/ 315remote procedure calls; 316see 317.Xr rpc 3 318.It Pa rpcsvc/ 319definition of RPC service structures; see 320.Xr rpc 3 321.It Pa security/ 322PAM; see 323.Xr pam 8 324.It Pa sys/ 325system C include files (kernel data structures) 326.\" .It Pa tcl/ 327.\" Tcl language; 328.\" see 329.\" .Xr Tcl n 330.\" .Bl -tag -width "kerberos5/" -compact 331.\" .It Pa generic/ 332.\" ??? 333.\" .It Pa unix/ 334.\" ??? 335.\" .El 336.It Pa ufs/ 337C include files for UFS (The U-word File System) 338.Bl -tag -width "kerberos5/" -compact 339.It Pa ffs/ 340Fast file system 341.It Pa ufs/ 342UFS file system 343.El 344.It Pa vm/ 345virtual memory; 346see 347.Xr vmstat 8 348.El 349.Pp 350.It Pa lib/ 351shared and archive 352.Xr ar 1 Ns -type 353libraries 354.Pp 355.Bl -tag -width Fl -compact 356.It Pa aout/ 357a.out archive libraries 358.It Pa compat/ 359shared libraries for compatibility 360.Bl -tag -width Fl -compact 361.It Pa aout/ 362a.out backward compatibility libraries 363.El 364.It Pa debug/ 365standalone debug data for the kernel and base system libraries and binaries 366.It Pa dtrace/ 367DTrace library scripts 368.It Pa engines/ 369OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines 370.El 371.Pp 372.It Pa libdata/ 373miscellaneous utility data files 374.Pp 375.Bl -tag -width Fl -compact 376.It Pa gcc/ 377.Xr gcc 1 378configuration data 379.It Pa ldscripts/ 380linker scripts; 381see 382.Xr ld 1 383.El 384.Pp 385.It Pa libexec/ 386system daemons & system utilities (executed by other programs) 387.Pp 388.Bl -tag -width Fl -compact 389.It Pa aout/ 390utilities to manipulate a.out executables 391.It Pa elf/ 392utilities to manipulate ELF executables 393.It Pa lpr/ 394utilities and filters for LP print system; 395see 396.Xr lpr 1 397.It Pa sendmail/ 398the 399.Xr sendmail 8 400binary; 401see 402.Xr mailwrapper 8 403.It Pa sm.bin/ 404restricted shell for 405.Xr sendmail 8 ; 406see 407.Xr smrsh 8 408.El 409.Pp 410.It Pa local/ 411local executables, libraries, etc. 412Also used as the default destination for the 413.Xr ports 7 414framework. 415Within 416.Pa local/ , 417the general layout sketched out by 418.Nm 419for 420.Pa /usr 421should be used. 422Exceptions are the 423.Pa man 424directory 425.Po directly under 426.Pa local/ 427rather than under 428.Pa local/share/ Ns Pc , 429ports documentation 430.Po in 431.Pa share/doc/<port>/ Ns Pc , 432and 433.Pa /usr/local/etc 434.Po mimics 435.Pa /etc Ns Pc . 436.It Pa obj/ 437architecture-specific target tree produced by building the 438.Pa /usr/src 439tree 440.It Pa ports/ 441.Xr ports 7 , 442the 443.Fx 444ports collection. 445.It Pa sbin/ 446system daemons & system utilities (executed by users) 447.It Pa share/ 448architecture-independent files 449.Pp 450.Bl -tag -width Fl -compact 451.It Pa calendar/ 452a variety of pre-fab calendar files; 453see 454.Xr calendar 1 455.It Pa dict/ 456word lists; 457see 458.Xr look 1 459.Bl -tag -width Fl -compact 460.It Pa freebsd 461.Fx Ns -specific 462terms, proper names, and jargon 463.It Pa web2 464words from Webster's 2nd International 465.El 466.It Pa doc/ 467miscellaneous documentation; 468source for most of the printed 469.Bx 470manuals (available 471from the 472.Tn USENIX 473association) 474.Bl -tag -width Fl -compact 475.It Pa FAQ/ 476Frequently Asked Questions 477.It Pa IPv6/ 478implementation notes for IPv6 479.It Pa es/ 480Spanish translations of documents in /usr/share/doc 481.It Pa handbook/ 482.Fx 483Handbook 484.It Pa ja/ 485Japanese translations of documents in /usr/share/doc 486.It Pa legal/ 487License files for vendor supplied firmware files 488.It Pa ncurses/ 489HTML documents pertaining to ncurses; 490see 491.Xr ncurses 3 492.It Pa ntp/ 493HTML documents pertaining to the Network Time Protocol 494.It Pa ru/ 495Russian translations of documents in /usr/share/doc 496.It Pa tutorials/ 497.Fx 498tutorials 499.It Pa zh/ 500Chinese translations of documents in /usr/share/doc 501.El 502.It Pa examples/ 503various examples for users and programmers 504.It Pa firmware/ 505firmware images loaded by userland programs 506.It Pa games/ 507ASCII text files used by various games 508.It Pa keys/ 509known trusted and revoked keys. 510.Bl -tag -width Fl -compact 511.It Pa pkg/ 512fingerprints for 513.Xr pkg 7 514and 515.Xr pkg 8 516.El 517.It Pa locale/ 518localization files; 519see 520.Xr setlocale 3 521.It Pa man/ 522manual pages 523.It Pa misc/ 524miscellaneous system-wide ASCII text files 525.Bl -tag -width Fl -compact 526.It Pa fonts/ 527??? 528.It Pa termcap 529terminal characteristics database; 530see 531.Xr termcap 5 532.El 533.It Pa mk/ 534templates for make; 535see 536.Xr make 1 537.It Pa nls/ 538national language support files 539.It Pa security/ 540data files for security policies such as 541.Xr mac_lomac 4 542.It Pa sendmail/ 543.Xr sendmail 8 544configuration files 545.It Pa skel/ 546example 547.Pa .\& 548(dot) files for new accounts 549.It Pa snmp/ 550MIBs, example files and tree definitions for the SNMP daemon. 551.Bl -tag -width Fl -compact 552.It Pa defs/ 553tree definition files for use with 554.Xr gensnmptree 1 555.It Pa mibs/ 556MIB files 557.El 558.It Pa syscons/ 559files used by syscons; 560see 561.Xr syscons 4 562.Bl -tag -width Fl -compact 563.It Pa fonts/ 564console fonts; 565see 566.Xr vidcontrol 1 567and 568.Xr vidfont 1 569.It Pa keymaps/ 570console keyboard maps; 571see 572.Xr kbdcontrol 1 573and 574.Xr kbdmap 1 575.It Pa scrnmaps/ 576console screen maps 577.El 578.It Pa tabset/ 579tab description files for a variety of terminals; used in 580the termcap file; 581see 582.Xr termcap 5 583.It Pa vi/ 584localization support and utilities for 585.Xr vi 1 586.It Pa vt/ 587files used by vt; 588see 589.Xr vt 4 590.Bl -tag -width Fl -compact 591.It Pa fonts/ 592console fonts; 593see 594.Xr vidcontrol 1 595and 596.Xr vidfont 1 597.It Pa keymaps/ 598console keyboard maps; 599see 600.Xr kbdcontrol 1 601and 602.Xr kbdmap 1 603.\" .It Pa scrnmaps/ 604.\" console screen maps 605.El 606.It Pa zoneinfo/ 607timezone configuration information; 608see 609.Xr tzfile 5 610.El 611.Pp 612.It Pa src/ 613.Bx , 614third-party, and/or local source files 615.Pp 616.Bl -tag -width "kerberos5/" -compact 617.It Pa bin/ 618source code for files in /bin 619.It Pa cddl/ 620utilities covered by the Common Development and Distribution License 621.It Pa contrib/ 622source code for contributed software 623.It Pa crypto/ 624source code for contributed cryptography software 625.It Pa etc/ 626source code for files in 627.Pa /etc 628.It Pa gnu/ 629utilities covered by the GNU General Public License 630.It Pa include/ 631source code for files in 632.Pa /usr/include 633.It Pa kerberos5/ 634build infrastructure for Kerberos version 5 635.It Pa lib/ 636source code for files in 637.Pa /lib 638and 639.Pa /usr/lib 640.It Pa libexec/ 641source code for files in 642.Pa /usr/libexec 643.It Pa release/ 644files required to produce a 645.Fx 646release 647.It Pa rescue/ 648source code for files in 649.Pa /rescue 650.It Pa sbin/ 651source code for files in 652.Pa /sbin 653.It Pa secure/ 654build directory for files in 655.Pa /usr/src/crypto 656.It Pa share/ 657source for files in 658.Pa /usr/share 659.It Pa stand/ 660boot loader source code 661.It Pa sys/ 662kernel source code 663.Bl -tag -width Fl -compact 664.It Pa amd64/ 665AMD64 architecture support 666.It Pa arm/ 667ARM architecture support 668.It Pa arm64/ 669ARMv8 architecture support 670.It Pa cam/ 671.Xr cam 4 672and 673.Xr ctl 4 674.It Pa cddl/ 675CDDL-licensed optional sources, including ZFS 676and DTrace 677.It Pa ddb/ 678.Xr ddb 4 679.It Pa fs/ 680most filesystems 681.It Pa dev/ 682device drivers 683.It Pa geom/ 684.Xr geom 4 685.It Pa i386/ 686i386 (32 bit) architecture support 687.It Pa kern/ 688main part of the kernel 689.It Pa mips/ 690MIPS architecture support 691.It Pa net80211/ 692.Xr net80211 4 693.It Pa netgraph/ 694.Xr netgraph 4 695.It Pa netinet/ 696.Xr inet 4 697.It Pa netinet6/ 698.Xr inet6 4 699.It Pa netipsec/ 700.Xr ipsec 4 701.It Pa netpfil/ 702.Xr ipfw 4 703and 704.Xr pf 4 705.It Pa opencrypto/ 706.Xr crypto 7 707.It Pa powerpc/ 708PowerPC/POWER architecture support 709.It Pa riscv/ 710RISC-V architecture support 711.It Pa security/ 712.Xr audit 4 713and 714.Xr mac 4 715.It Pa sparc64/ 716SPARC64 architecture support 717.It Pa sys/ 718kernel headers 719.It Pa ufs/ 720Unix File System 721.It Pa x86/ 722code shared by AMD64 and i386 architectures 723.El 724.It Pa targets/ 725support for experimental DIRDEPS_BUILD 726.It Pa tests/ 727source code for files in 728.Pa /usr/tests 729.It Pa tools/ 730tools used for maintenance and testing of 731.Fx 732.It Pa usr.bin/ 733source code for files in 734.Pa /usr/bin 735.It Pa usr.sbin/ 736source code for files in 737.Pa /usr/sbin 738.El 739.Pp 740.It Pa tests/ 741The 742.Fx 743test suite. 744See 745.Xr tests 7 746for more details. 747.El 748.It Pa /var/ 749multi-purpose log, temporary, transient, and spool files 750.Pp 751.Bl -tag -width "defaults/" -compact 752.It Pa account/ 753system accounting files 754.Pp 755.Bl -tag -width Fl -compact 756.It Pa acct 757execution accounting file; 758see 759.Xr acct 5 760.El 761.Pp 762.It Pa at/ 763timed command scheduling files; 764see 765.Xr \&at 1 766.Pp 767.Bl -tag -width Fl -compact 768.It Pa jobs/ 769directory containing job files 770.It Pa spool/ 771directory containing output spool files 772.El 773.Pp 774.It Pa backups/ 775miscellaneous backup files 776.It Pa cache/ 777miscellaneous cached files 778.Pp 779.Bl -tag -width Fl -compact 780.It Pa pkg/ 781cached packages for 782.Xr pkg 8 783.El 784.Pp 785.It Pa crash/ 786default directory to store kernel crash dumps; see 787.Xr crash 8 788and 789.Xr savecore 8 790.It Pa cron/ 791files used by cron; 792see 793.Xr cron 8 794.Pp 795.Bl -tag -width Fl -compact 796.It Pa tabs/ 797crontab files; 798see 799.Xr crontab 5 800.El 801.Pp 802.It Pa db/ 803miscellaneous automatically generated system-specific database files 804.It Pa empty/ 805empty directory for use by programs that need a specifically empty directory. 806Used for instance by 807.Xr sshd 8 808for privilege separation. 809.It Pa games/ 810miscellaneous game status and score files 811.It Pa heimdal/ 812Kerberos server databases; see 813.Xr kdc 8 814.It Pa log/ 815miscellaneous system log files 816.Pp 817.Bl -tag -width Fl -compact 818.It Pa utx.lastlogin 819last login log; 820see 821.Xr getutxent 3 822.It Pa utx.log 823login/logout log; 824see 825.Xr getutxent 3 826.El 827.Pp 828.It Pa mail/ 829user mailbox files 830.It Pa msgs/ 831system messages database; 832see 833.Xr msgs 1 834.It Pa preserve/ 835temporary home of files preserved after an accidental death 836of an editor; 837see 838.Xr \&ex 1 839.It Pa quotas/ 840file system quota information files 841.It Pa run/ 842system information files describing various info about 843system since it was booted 844.Pp 845.Bl -tag -width Fl -compact 846.It Pa ppp/ 847writable by the 848.Dq network 849group for command connection sockets; see 850.Xr ppp 8 851.It Pa utx.active 852database of current users; 853see 854.Xr getutxent 3 855.El 856.Pp 857.It Pa rwho/ 858rwho data files; 859see 860.Xr rwhod 8 , 861.Xr rwho 1 , 862and 863.Xr ruptime 1 864.It Pa spool/ 865miscellaneous printer and mail system spooling directories 866.Pp 867.Bl -tag -width Fl -compact 868.It Pa clientmqueue/ 869undelivered submission mail queue; 870see 871.Xr sendmail 8 872.It Pa ftp/ 873commonly ~ftp; the anonymous ftp root directory 874.It Pa mqueue/ 875undelivered mail queue; 876see 877.Xr sendmail 8 878.It Pa output/ 879line printer spooling directories 880.El 881.Pp 882.It Pa tmp/ 883temporary files that are kept between system reboots 884.Pp 885.Bl -tag -width Fl -compact 886.It Pa vi.recover/ 887the directory where recovery files are stored 888.El 889.Pp 890.It Pa yp/ 891the NIS maps 892.El 893.El 894.Sh NOTES 895This manual page documents the default 896.Fx 897file system layout, but 898the actual hierarchy on a given system is defined at the system 899administrator's discretion. 900A well-maintained installation will include a customized version of 901this document. 902.Sh SEE ALSO 903.Xr apropos 1 , 904.Xr find 1 , 905.Xr finger 1 , 906.Xr grep 1 , 907.Xr ls 1 , 908.Xr whatis 1 , 909.Xr whereis 1 , 910.Xr which 1 , 911.Xr fd 4 , 912.Xr devfs 5 , 913.Xr fsck 8 914.Sh HISTORY 915A 916.Nm 917manual page appeared in 918.At v7 . 919