linux directory structure
The linux file system adopts a hierarchical tree-like directory structure. The top level in this structure is the root directory "/", and then other directories are created under this directory.
The contents of each linux directory
Highlighting
/bin
- Store frequently used commands
/sbin
- Stores system management programs used by system administrators or super users
/home
- The home directory of common users is stored. In Linux, each user has its own directory. Generally, the name of the directory is named after the user's account.
/root
- This directory is the user home directory of the system administrator, also known as the super authority.
/lib
- The most basic dynamic link shared library required for system booting is similar to the DLL file in Windows. Almost all applications need to use these shared libraries.
/lost+found
- This directory is generally empty. When the system is shut down illegally, some files are stored here.
/etc
- All configuration files and subdirectories my.conf required for system management
/usr
- This is a very important directory. Many user applications and files are placed in this directory, similar to the program files directory under windows.
/boot
- Stored are some core files used when starting Linux, including some connection files and mirror files
/proc
- This directory is a virtual directory, which is a mapping of system memory. Visit this directory to obtain system information.
/srv
- Service abbreviation, this directory stores some data that needs to be extracted after the service is started.
/sys
- This is a big change in the linux2.6 kernel. A new file system in the 2.6 kernel is installed in this directory
/tmp
- This directory is used to store some temporary files.
**/dev **
- Similar to the Windows Device Manager, all hardware is stored in the form of files.
/media
- The linux system will automatically recognize some devices, such as U disks, CD-ROM drives, etc., after recognition, linux will mount the recognized devices to this directory.
/ mnt
- The system provides this directory to allow users to temporarily mount other file systems. We can mount the external storage on /mnt/, and then enter the directory to view the contents.
/opt
- This is the directory where additional software is installed on the host. If ORACLE database is installed, it can be placed in this directory. The default is empty.
/usr/local
- This is another directory where additional software is installed on the host. Generally it is a program installed by compiling source code.
/where
- This directory contains things that are constantly expanding, and it is customary to put frequently modified directories in this directory. Including various log files.
/selinux [security-enhanced linux] 360
- SELinux is a security subsystem, which can control programs to only access specific files.