Differences between revisions 10 and 11
Revision 10 as of 2005-12-15 07:25:26
Size: 4196
Editor: PeMac
Comment:
Revision 11 as of 2005-12-15 07:26:53
Size: 4166
Editor: PeMac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
 *|/bin/
 **|Essential command executable (|'''bin'''aries) for all users (e.g., ["cat"], ["ls"], ["cp"])
 */bin/
 *Essential command executable (|'''bin'''aries) for all users (e.g., ["cat"], ["ls"], ["cp"])
Line 23: Line 23:
 **|"Boot loader"] ('''Boot''' loader files) ,e.g., ["kernel"]s, ["initrd"]  *["Boot loader"] ('''Boot''' loader files) ,e.g., ["kernel"]s, ["initrd"]
Line 29: Line 29:
 **Host-specific system-wide configuration files (from '''et c'''etera)  *Host-specific system-wide configuration files (from '''et c'''etera)
Line 33: Line 33:
 ** Configuration files for /opt/  * Configuration files for /opt/
Line 37: Line 37:
 **Configuration files for the ["X Window System"] ('''X''' Window System), version '''11'''  *Configuration files for the ["X Window System"] ('''X''' Window System), version '''11'''
Line 42: Line 42:
 **Configuration files for '''SGML'''  *Configuration files for '''SGML'''
Line 46: Line 46:
 **Configuration files for '''XML'''  *Configuration files for '''XML'''
Line 49: Line 49:
 **Users' '''home''' directories  *Users' '''home''' directories
Line 52: Line 52:
 **'''Lib'''raries essential for the binaries in /bin/ and /sbin/  *'''Lib'''raries essential for the binaries in /bin/ and /sbin/
Line 55: Line 55:
 **Temporarily '''m'''ou'''nt'''ed filesystems  *Temporarily '''m'''ou'''nt'''ed filesystems
Line 58: Line 58:
 **Mount points for removable '''media''' such as CD-ROMs (appeared in FHS-2.3)  *Mount points for removable '''media''' such as CD-ROMs (appeared in FHS-2.3)
Line 61: Line 61:
 **Static application software packages  *Static application software packages
Line 64: Line 64:
 **Virtual filesystem documenting kernel and '''proc'''ess status, mostly text files (e.g., uptime, network)  *Virtual filesystem documenting kernel and '''proc'''ess status, mostly text files (e.g., uptime, network)
Line 67: Line 67:
 **Home directory for the '''["root"]''' user  *Home directory for the '''["root"]''' user
Line 70: Line 70:
 **System administrative binaries (e.g., init, route, ifup) ('''s'''ystem '''bin'''aries)  *System administrative binaries (e.g., init, route, ifup) ('''s'''ystem '''bin'''aries)
Line 73: Line 73:
 **'''T'''e'''mp'''orary files  *'''T'''e'''mp'''orary files
Line 76: Line 76:
 **Site-specific data which is '''s'''e'''rv'''ed by the system  *Site-specific data which is '''s'''e'''rv'''ed by the system
Line 79: Line 79:
 **Secondary hierarchy for shareable, read-only data (formerly from '''U'''NIX '''s'''ource '''r'''epository, now from '''U'''NIX '''s'''ystem '''r'''esources)  *Secondary hierarchy for shareable, read-only data (formerly from '''U'''NIX '''s'''ource '''r'''epository, now from '''U'''NIX '''s'''ystem '''r'''esources)
Line 83: Line 83:
 **Same as for top-level hierarchy  *Same as for top-level hierarchy
Line 87: Line 87:
 ** Standard '''include''' files  * Standard '''include''' files
Line 91: Line 91:
 **Same as for top-level hierarchy  *Same as for top-level hierarchy
Line 95: Line 95:
 **Same as for top-level hierarchy  *Same as for top-level hierarchy
Line 99: Line 99:
 **Architecture-independent ('''share'''d) data  *Architecture-independent ('''share'''d) data
Line 103: Line 103:
 **'''S'''ou'''rc'''e code  *'''S'''ou'''rc'''e code
Line 107: Line 107:
 **'''X''' Window System, Version '''11 R'''elease '''6'''  *'''X''' Window System, Version '''11 R'''elease '''6'''
Line 111: Line 111:
 **|Tertiary hierarchy for '''local''' data installed by the ["system administrator"]  *Tertiary hierarchy for '''local''' data installed by the ["system administrator"]
Line 114: Line 114:
 **'''Var'''iable files, such as logs, databases, websites, and temporary e-mail files  *'''Var'''iable files, such as logs, databases, websites, and temporary e-mail files

The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux and other Unix-like computer operating systems.

Overview

The process of developing a standard ["filesystem"] hierarchy began in August 1993 with an effort to restructure the file and directory structure of ["Linux"]. The FSSTND (Filesystem Standard), a filesystem hierarchy standard specific to the Linux operating system, was released on February 14, 1994. Subsequent revisions were released on October 9, 1994 and March 28, 1995.

In early 1996, the goal of developing a more comprehensive version of FSSTND to address not only Linux, but other Unix-like systems was adopted with the help of members of the BSD development community. As a result, a concerted effort was made to focus on issues that were general to Unix-like systems. In recognition of this widening of scope, the name of the standard was changed to Filesystem Hierarchy Standard or FHS for short.

The FHS is maintained by the Free Standards Group, a non-profit organization consisting of major software and hardware vendors, such as HP, IBM and Dell. Still, the vast majority of the Linux distributions, including those developed by members of the Free Standards Group, do not follow this proposed standard. In particular, paths specifically created by the FHS editors, such as /media/ and /srv/, do not see widespread usage. Some Unix and Linux systems break with the FHS in favor of a different approach, as in ?GoboLinux.

Directory structure

All files and directories appear under the ["root directory"] "/", even if stored on different physical devices.

A description of the hierarchy specified in the FHS

-

  • /bin/
  • Essential command executable (|binaries) for all users (e.g., ["cat"], ["ls"], ["cp"])

-

  • /boot/
  • ["Boot loader"] (Boot loader files) ,e.g., ["kernel"]s, ["initrd"]

-

  • /dev/
  • *Essential devices (e.g., :/dev/null)

-

  • /etc/
  • Host-specific system-wide configuration files (from et cetera)

-

  • :/etc/opt/
  • Configuration files for /opt/

-

  • :/etc/X11/ (optional)
  • Configuration files for the ["X Window System"] (X Window System), version 11

-

  • :/etc/sgml/ (optional)
  • Configuration files for SGML

-

  • :/etc/xml/ (optional)
  • Configuration files for XML

-

  • /home/ (optional)
  • Users' home directories

-

  • /lib/
  • Libraries essential for the binaries in /bin/ and /sbin/

-

  • /mnt/
  • Temporarily mounted filesystems

-

  • /media/
  • Mount points for removable media such as CD-ROMs (appeared in FHS-2.3)

-

  • /opt/
  • Static application software packages

-

  • /proc/
  • Virtual filesystem documenting kernel and process status, mostly text files (e.g., uptime, network)

-

  • /root/ (optional)
  • Home directory for the ["root"] user

-

  • /sbin/
  • System administrative binaries (e.g., init, route, ifup) (system binaries)

-

  • /tmp/
  • Temporary files

-

  • /srv/
  • Site-specific data which is served by the system

-

  • /usr/
  • Secondary hierarchy for shareable, read-only data (formerly from UNIX source repository, now from UNIX system resources)

-

  • :/usr/bin/
  • Same as for top-level hierarchy

-

  • :/usr/include/
  • Standard include files

-

  • :/usr/lib/
  • Same as for top-level hierarchy

-

  • :/usr/sbin/
  • Same as for top-level hierarchy

-

  • :/usr/share/
  • Architecture-independent (shared) data

-

  • :/usr/src/ (optional)
  • Source code

-

  • :/usr/X11R6/ (optional)
  • X Window System, Version 11 Release 6

-

  • :/usr/local/
  • Tertiary hierarchy for local data installed by the ["system administrator"]

-

  • /var/
  • Variable files, such as logs, databases, websites, and temporary e-mail files

* [http://www.pathname.com/fhs/ Home of the FHS standard]

See also ?PrintingFilesystem --- [http://www.debian.org/doc/packaging-manuals/fhs/ wikiframe]