Main Page

encyclopedia.codeboy.net

 

Filesystem Hierarchy Standard

The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux and other Unix-like computer operating systems. All files and directories appear under the root directory /, even if stored on different physical devices. Directories defined by the FHS include:
  • /bin/ Essential command binaries for all users (e.g., cat, ls, cp)\n* /boot/ Boot loader files (e.g., kernelss, initrd)\n* /dev/ Essential devices (e.g., //dev/null)\n* /etc/ Host-specific system-wide configuration files\n** /etc/opt/ Configuration files for /opt/\n** /etc/X11/ (optional) Configuration files for the X Window System\n** /etc/sgml/ (optional) Configuration files for SGML\n** /etc/xml/ (optional) Configuration files for XML\n* /home/ (optional) Users' home directories \n* /lib/ Libraries essential for the binaries in /bin/ and /sbin/\n* /mnt/ Temporarily mounted filesystems\n* /media/ Mountpoints for removable media such as CD-Roms (appeared in FHS-2.3)\n* /opt/ Static application software packages\n* /proc/ Virtual filesystem documenting kernel status, mostly text files (e.g., uptime, network)\n* /root/ (optional) Home directory for the root user\n* /sbin/ Essential binaries for root (e.g., init, route, ifup)\n* /tmp/ (optional) Temporary files\n* /usr/ Secondary hierarchy for shareable, read-only data\n** /usr/bin/, /usr/lib/, /usr/sbin/ Same as for top-level hierarchy\n** /usr/include/ Standard include files\n** /usr/share/ Architecture-independent data\n** /usr/src/ (optional) Source code\n** /usr/X11R6/ (optional) X Window System, Version 11 Release 6\n** /usr/local/ Tertiary hierarchy for local data installed by the system administrator\n* /var/ Variable files, such as logs and temporary files

External links

\n*
Home of the FHS standard \n\n

"Some editors are failed writers, but so are most writers." - T. S. Eliot (1888-1965)