The Linux file system is an inverted single tree structure.
The root of the file system is "/"
Everything in Linux is a file.
As shown in the following:
The functions of each folder are as follows:
Bin: Holds executable files that can be executed by all users.
Boot: Store system boot, start related content. The vmlinux is the kernel file.
Dev: The file that holds the hardware device. Because everything in Linux is a file, the hardware is also abstracted into files.
ETC: This directory holds operating system-related configuration files
Home: An ordinary user's home directory. Each user has a private directory in this directory (in addition to the root user)
LIB: Repository file
Lost+found:ext folder for file system
Media: Automatically mount a directory, such as a USB flash drive. But not all Linux has this directory.
MNT: Manually mounted devices typically use this directory
Opt: A directory that installs large software, such as Oracle
Proc: This directory contains real-time information about the operating system. Does not exist on the hard disk and only exists in memory
Root:root User's home directory
Sbin: Executable file (different from bin directory) that can only be executed by superuser (root)
SYS: hardware information at the bottom of the system
TMP: Temp directory, the contents of which will be automatically deleted by the system.
USR: This directory is typically used to install application software
var: This directory user holds frequently changing information, such as logs.
linux-(1) Linux tree file system structure and the role of each folder