Folder directory under the root directory:
- root directory/(home directory of the root user)
Each file and directory is started from the root directory.
Only the root user has write access to the directory.
It is important to note that/root is the home directory of the root user, while the user's home directory for normal users is/home/user
Home directory for normal user
- /sbin/bin Store the commands used by the user.
The commands in/sbin/only allow root users to be used by Superuser. The normal user uses the commands under the/bin/directory. For example, LS cat VI,/boot system boot related files, namely: boot loader related files.[[email protected] ~]# ls /boot/config-3.10.0-514.el7.x86_64 initramfs-0-rescue-16b3e1f1592341f8abd834add3b42bf5.img initrd-plymouth.img vmlinuz-0-rescue-16b3e1f1592341f8abd834add3b42bf5grub initramfs-3.10.0-514.el7.x86_64.img symvers-3.10.0-514.el7.x86_64.gz vmlinuz-3.10.0-514.el7.x86_64grub2 initramfs-3.10.0-514.el7.x86_64kdump.img System.map-3.10.0-514.el7.x86_64
V./dev device files.
Includes terminal equipment, USB, or any device connected to the system. For example:/dev/tty1,/dev/usbmon0
Vi./lib/lib64 System Library files
Common commands rely on library files, and you can use Ldd/bin/ls to view the LS-dependent library files
Seven,/media automatically mount the directory, default is empty. Currently more commonly used, such as USB flash drive, DVD and other eight,/mnt manual mount directory, the default is empty nine,/proc process information
A virtual file system that contains information about a running process. For example: The/proc/{pid} directory contains information related to a specific PID.
X. Temporary files generated by the/run process 11,/var variable file
Files that may grow in content can be found under this directory.
This includes-system log files (/var/log), Package and database files (/var/lib), e-mail (/var/mail), print queue (/var/spool), lock file (/var/lock), and multiple restarts of required temporary files (/var/ TMP);
12./etc Configuration file
Contains the configuration files that are required for all programs.
Also includes startup and shutdown shell scripts for starting/stopping a single program
Linux system directory structure