This post introduces the filesystem of Linux, as the Linux Standards Board has developed a filesystem standard FHS, a filesystem-level standard that specifies which directories the Linux distribution should create to store specific types of files.
The root directory is recorded as/
First Level directory:
/boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)
/dev: Device files
Block device files: Random access devices, accessed in blocks
Character device Ask Price: sequential access to device, accessed in character units
Main device number (major), secondary device number (minor)
/etc: Configuration file
Home directory for users, the home directory of each user defaults to/home/username
/root: Administrator's home directory
/lib: library file directory
. A: Static library files
. So: Dynamic library file (shared object)
/lib/modules: Kernel Module directory
/include: Header file directory
/media: mount point directory, mobile device
/MNT: mount point directory, additional temporary file system
/OPT: Optional directory, installation path for third-party software
/proc: Pseudo file system, kernel mapping file
/sys: Pseudo file system, property mapping file related to hardware device
/tmp: Temp file/var/tmp
/var: variable file
Related to System startup:
/bin: Executable file, user command
/sbin: Managing Commands
Related to normal operation after system startup:
/usr:universal, GKFX, read-only
/usr/bin
/usr/sbin
/usr/lib
/usr/include
Related to third-party software:
/usr/local
/usr/local/bin
/usr/local/sbin
/usr/local/lib
/usr/local/include
File directory naming rules:
1, the length can not exceed 255 characters;
2. Cannot include/;
3, strictly case-sensitive.
Introduction to Linux File system