Linux File System (version 2), 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]
What are the components of a Linux File System?
File System? Is it the system file structure?
Everything in Linux is a file, so it is extremely important to understand the meaning and content of the directory under Linux. When talking about directory configuration, we have to mention the Linux directory configuration standard (FHS ).
Linux directory configuration standard: FHS
There are too many teams/companies/individuals who use Linux to develop products or distribution. If everyone uses their own ideas to configure the directory where files are stored, it will cause a lot of Management troubles. Therefore, the so-called Filesystem Hierarchy Standard (FHS) Standard was introduced later.
The main purpose of FHS is to let users know under which directory the installed software is usually stored, that is, the focus of FHS is to standardize what data should be placed under each specific directory.
In fact, FHS only defines what data should be placed under the three-tier directory for the directory tree architecture, namely:
/(Root, root directory): Related to the boot system;
/Usr (UNIX software resource): related to software installation/execution;
/Var (variable): it is related to the system running process.
What is the linux File System?
The file system is the storage structure of data.
Do not take your hard disk storage for granted. If you do not have a file system, you only store 01010100011101010101010.
Your Windows File System Is ntfs fat or something.
Linux only uses different. ext3 ext4 reiserFS or something.