Linux的FHS(Filesystem Hierarchy Standard)

September 23, 2023, Saturday evening


Linux's FHS (Filesystem Hierarchy Standard) is the standard for the Linux file system structure, which defines the purpose and location of each directory in the Linux system.

The main directory structure is as follows:

  • /bin: stores the most basic executable commands of the system
  • /boot: stores files for starting the Linux kernel and initializing ramdisk
  • /dev: stores device files
  • /etc: stores configuration files and subdirectories related to system management
  • /home: User home directory, generally stores files for each user
  • /lib: stores the library files required by the system's underlying programs
  • /media: mount point for mounting removable media devices
  • /mnt: Mount point for temporarily mounting the file system
  • /opt: Install optional application packages
  • /proc: virtual file system, reflecting kernel and hardware information
  • /root: The home directory of the system administrator root user
  • /sbin: stores executable files related to system management
  • /srv: stores service data
  • /tmp: Directory for storing temporary files
  • /usr: stores all user applications
  • /var: stores dynamic data, such as logs, lock files, etc.

FHS standardizes the organizational structure of Linux system directories, making each distribution consistent and easy to manage and maintain. It provides good specifications for the organization and use of Linux file systems.

Guess you like

Origin blog.csdn.net/m0_61629312/article/details/133218471