/:Root directory. Generally, only directories are stored in the root directory. Do not store files./etc,/bin,/dev,/lib,/sbin should be placed in the same partition as the root directory.
/Bin:/usr/bin:Directory of executable binary files, such as Common commands such as LS, tar, MV, and CAT.
/Boot:Place some files used during Linux Startup. /Boot/vmlinuz is the Linux Kernel File and/boot/gurb. It is recommended to partition separately. The partition size is MB.
/Dev:Stores Device Files in Linux. Accessing a file in this directory is equivalent to accessing a device. It is commonly used to mount the optical drive Mount/dev/CDROM/MNT.
/Etc:The directory where the system configuration file is stored. It is not recommended to store executable files in this directory. Important configuration files include/etc/inittab,/etc/fstab,/etc/init. d,/etc/X11,/etc/sysconfig,/etc/xinetd. d. Back up the configuration file before modifying it. Note:/etc/X11 stores settings related to X Windows.
/Home:The default user's home directory. When a user account is added, the user's home directory is stored in this directory ,~ Indicates the Home Directory of the current user ,~ Test indicates the Home Directory of user test. We recommend that you partition data separately and set a large disk space to facilitate data storage.
/Lib:/usr/local/lib:The Directory of the function library used by the system. When the program calls some additional parameters during execution, it must be assisted by the function library. The more important directory is/lib/modules.
/Lost + fount:When an error occurs due to a system exception, some lost fragments are stored in this directory, which usually automatically appears in the Device directory. If the hard disk is loaded to/disk, the directory/Disk/lost + found is automatically generated under this directory.
/Mnt:/media:The default mount point of the disc. Generally, the disc is mounted under/mnt/CDROM. You can choose any location for mounting.
/OPT:Directory for additional software installation on the host. For example, if you want to install the new KDE Desktop software for the fedora community development software used by FC4, you can install the software in this directory. In previous Linux systems, we used to place them in the/usr/local directory.
/Proc:The data in this directory is in the memory, such as the system core, external devices, and network status. Because the data is stored in the memory, it does not occupy disk space, important directories include/proc/cpuinfo,/proc/interrupts,/proc/DMA,/proc/ioports,/proc/NET/*, etc.
/Root:In the home directory of the system administrator root, the first start partition of the system is/, so it is best to put/root and/under a partition.
/Sbin:/usr/local/sbin:Place executable commands used by the system administrator, such as fdisk, shutdown, and mount. Different from/bin, these directories are commands used by the system administrator root. Generally, users can only view these directories, but cannot set and use them.
/Tmp:The directory where files are temporarily stored by users or programs in progress. Anyone can access the directory. Important data cannot be stored in this directory.
/Srv:The data directory to be accessed after the service starts. For example, the webpage data to be accessed by the WWW Service is stored in/srv/www.
/Usr:Application storage directory,/Usr/binStore applications,/Usr/shareStore shared data,/Usr/libStorage cannot run directly, but some library files necessary for many programs to run. /Usr/local: store the software upgrade package./Usr/share/DOC:System description file storage directory./Usr/share/man:Program description file storage directory. When man ls is used, the/usr/share/man/Man1/ls.1.gz content is queried. We recommend that you separate partitions to set a large disk space.
/Var:Place files that frequently change during system execution, such as log files that are changed at any time/Var/log,/var/log/message:All login file storage directories,/Var/spool/mail:Email storage directory,/Var/run:Start a program or service
The PID is stored in this directory. We recommend that you separate partitions and set a large disk space.
Centos directory structure details