当前位置:网站首页>Filesystem Hierarchy Standard

Filesystem Hierarchy Standard

2022-08-11 08:13:00 OopspoO

Filesystem Hierarchy Standard

The Filesystem Hierarchy Standard (FHS) defines the main directories and directory contents in the Linux operating system.FHS is maintained by the Linux Foundation.The current version is version 3.0, released in 2015.

The

documents are not much, about 50 pages in English, so you can read them quickly.

Look at the abstract first:

This standard consists of a set of requirements and guidelines for file and directory placement under UNIX-like
operating systems. The guidelines are intended to support interoperability of applications, system administration tools,
development tools, and scriptsas well as greater uniformity of documentation for these systems.

Generally speaking, it means to determine a specification for the location of files and directories for UNIX-like systems.

The next article is divided into the following sections:

  1. The Root Filesystem - The Root Filesystem
    specifies which directory files need to be in the root directory.
    The following directories (whether linked or not) need to exist in the root directory:
DirectoryDescription
binEssential command binaries
bootStatic files of the boot loader
devDevice files
etcHost-specific system configuration
libEssential shared libraries and kernel modules
mediaMount point for removable media
mntMount point for mounting a filesystem temporarily
optAdd-on application software packages
runData relevant to running processes
sbinEssential system binaries
srvData for services provided by this system
tmpTemporary files
usrSecondary hierarchy
varVariable data
  1. /usr directory structure - The /usr Hierarchy
    specifies which files are required in the usr directory.
    It should be noted that **/usr is not the abbreviation of user, in fact, usr is the abbreviation of Unix Software Resource, that is, the directory where the software resources of the Unix operating system are placed, not the user's data; all system default software will be placedTo /usr, when the system is installed, this directory will occupy the most hard disk capacity**

  2. /var directory structure - The /var Hierarchy
    specifies which files are required in the var directory.
    /var contains the data to be changed during normal operation of the system.Usually the size of the directory where the data resides is frequently changed or expanded.

  3. Some other specific components of the operating system

reference

https://refspecs.linuxfoundation.org/

原网站

版权声明
本文为[OopspoO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110808458087.html