Linux File System (version 2)
Linux File System Structure
/Boot directory:
The storage location of the kernel files and System Bootstrap files stores the current kernel of the system [generally MB]
For example, the configuration file of the grub boot file
/Etc directory:
This directory must be backed up when backing up the system.
For example, a file that the system administrator often needs to modify determines the configuration file for system behavior.
/Bin,/usr/bin directory:
Store frequently-used commands of users [All users can use]
Such as ls and cp
/Sbin,/usr/sbin directory:
Command Used To save system maintenance [common users are unavailable and only root users are available]
For example, fdisk: Partition
Mkfs: Format
/Lib directory:
Saves the library files required for running the system. When installing the program, the Library is automatically copied here.
For example, a static library file suffixed with. a in C Language
Dynamic library file with. so Extension
/Dev directory:
Store Device Files
For example:/dev/cdrom
/Dev/hda
/Dev/sdb
/Var directory:
Saves frequently changed files and data during system operation
For example, log file: log
Email file: mail
Offline files and scheduled tasks
/Mut directory:
For the convenience of installing the temporary file system, the devices are usually mounted to the mut directory.
For example, a CD: mut/cdrom
USB flash disk: mut/sdb2
/Proc directory:
System memory/CPU ing, stores the current memory image, virtual file system, not stored in the hard disk
For example, view the memory size: more/proc/meminfo
View CPU: more/proc/cpuinfo
After the directory is deleted and restarted, it will be mapped again.
/Tmp directory:
Used to save temporary files generated when the system is running. special permissions: Stick bit t
For example, temporary data during program running
/Usr directory:
It is the largest in the system to store user-related information.
Saves almost all commands, libraries, and manual pages. Similar to the C: \ Windows directory in windows, you are used to installing software in the/usr/local directory.
/Home directory:
In the system, the Home Directory of a common user; cd returns its home directory by default
/Root directory:
The root directory of the Super User IN THE SYSTEM
/Lost + found
Stores system error check results. The directory is empty by default.
[Most of the others have no important functions, and many of them are empty !]
[When managing a file system,/home,/boot,/usr can be separated separately]