/boot: System startup related files:
/dev: Where device files are stored
Block devices: Capable of random reads: For example, hard drives
Character devices: Sequential read devices: For example, keyboards
/home: The location of each user's house directory.
User's home directory:/home/user
The root user's home directory is;/root
/lib: Where the library files are stored
Library file: An executable program that is called by the program to interact with the system kernel. A library file is a program. The kernel deals with hardware by invoking system calls. Security and complexity are not optimistic if the program directly interacts with the hardware using system calls. So use the library file to call the kernel to interact with the hardware.
Library files are divided into dynamic library files and static library files:
Dynamic library files:. dll files in Windows,. so files in Linux. The dynamic library will be loaded into memory and can be used by multiple programs. Save memory space. However, if a program needs to use a dynamic library, then we need to ensure that the system contains the corresponding dynamic library when installing the program
Static library file: A static library cannot be shared as a dynamic library, it is contained within a program and can only be called by that program. Unable to save memory as a dynamic library
/proc: Pseudo File system: Contains the kernel's mapping file. Our systems, such as CPU information, are in there.
/sys: Another pseudo file system: it contains hardware mappings
/tmp: Temp file
/OPT: Optional directory: Previously used for storage of third-party software
/bin: User's commands
/sbin: command of the system
/media: Mobile Device Mount Directory
/MNT: Additional temporary file system: For example, hard disk. Mount a directory like media
/var: variable directory: There are directories such as logs and caches
/usr:unervuersal,shared,read only: Shared read-only files for the entire region. There are two sub-file systems inside.
/usr/bin
/usr/sbin
/usr/lib
There is also a sub-file system: Software used to store third parties. Instead of the previous opt
/usr/local/bin
/usr/local/sbin
/usr/local/lib
This article is from the Linux learning blog, so be sure to keep this source http://884482.blog.51cto.com/874482/1694713
Linux Root file system explained