/bin the most common commands stored in this directory
/boot This directory contains some of the core files when booting Linux, including some connection files and image files.
/dev This directory contains Linux external devices.
/etc This directory contains all the required configuration files and subdirectories for system administration.
/home This is the user's main directory. In Linux, each user has a directory of their own, which is typically named after the user's account name.
/lib This directory is the most basic system of dynamic connection shared library. Works like a DLL file in Windows, and almost all applications need to use these shared libraries.
/lost+found the directory is empty in one case, and when the system shuts down illegally, some files are stored here.
/media system will automatically identify some devices (such as a USB flash drive, CD-ROM, etc.), when identified, Linux will be identified by the device mounted in the directory.
The/MNT system provides this directory for users to temporarily mount other file systems. We can attach the optical drive to the/mnt/and then go to the directory to view the contents of the CD drive.
/opt This is the directory that is set up for the host to install additional software. The directory is empty by default. For example, if you want to install an Oracle database, you can put it in this directory.
/proc The directory is a virtual directory and is a mapping of system memory. We can get contact information through direct access. The contents of the directory are in memory. We can directly modify some of the files inside. For example, use the above command to block the host's ping command. It is the other person who cannot ping your machine.
# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
/root The directory is the user home directory of the system administrator.
/sbin S is the meaning of super. This directory holds the hypervisor that is used by the system administrator.
/selinux SeLinux is a security mechanism, similar to the Windows Firewall, but this mechanism is more complex. This directory holds files related to SELinux.
/srv This directory contains data that needs to be extracted after some services have been started.
/sys This directory contains information related to hardware drivers.
/tmp The directory is used to store some temporary files.
/usr This is a very important directory. Similar to the program directory under Windows. Many of the users ' applications and files are stored in this directory.
/usr/bin This directory holds applications that are used by system users.
/usr/sbin This directory is a relatively advanced hypervisor and system daemon used by super users.
/USR/SRC The directory is the default drop directory for the kernel source code.
/var The directory is an expanding and frequently modified directory, including a variety of log files.
To be aware of:
The/etc directory is a system configuration file, and changing a file in that directory may cause the system to not start properly.
The/bin,/sbin,/usr/bin, and/usr/sbin directories are the placement directories for system-Preset execution files, where the/bin and/usr/bin directories are instructions for system root use. For example, the LS command is stored in the/bin/directory.
/Var is also a very important directory where the logs generated when running each program on the system are recorded in that directory (i.e., the/var/log directory), and the Presets for the mail instructions are placed here.
Linux directory structure