File System CompositionReference:
Http://linux.chinaunix.net/techdoc/beginner/2007/03/30/953684.shtml
Http://linux-wiki.cn/wiki/zh-hans/Linux%E7%9B% AE %E5%BD%95%E7%BB%93%E6%9E%84
Http://www.xker.com/page/e2007/0829/30523.html
Http://linux-wiki.cn/wiki/zh-hans/Linux%E7%9B% AE %E5%BD%95%E7%BB%93%E6%9E%84
Personal summary:
Organize files and directories to facilitate file management. A fixed directory structure has been created during installation. Each directory has its own purposes and files;
Level 1 ------------------------/-- (root directory) ----------- tree structure, the directory tree has only one
Level 2:
BinContains binary executable commands, the most basic system commands such as LS and kill, and all the commands used to complete basic maintenance tasks.
BootContains the core file used to start Linux. GuideProgramGrub (Grand uniiedbootloader) multi-system Boot manager (essentially a micro-system, through chain startup, you can choose to start the kernel in multiple operating systems); Linux kernel, vmlinuz is a bootable, compressed kernel; initrd. IMG (that is, boot
Load initial RAM disk indicates that bootloader loads the files initrd in the storage medium to the memory. Similar to the win PE system, it can run without a hard disk. When the kernel starts, it first executes a file in the initrd file system, loading various modules (such as file system storage media drives) removes the need to attach real root partitions to physical disks. Some embedded systems do not even need real root partitions, initrd can handle everything, similar to winpe systems that can be started without a hard disk. In this way, the kernel vmlinuz can be smaller. It should not include drivers of all storage media. [Initrd. IMG details]
DevContains all system device files, such as memory, modem, and disk
EtcSystem and Application configuration files, such as user names and passwords, configuration files and scripts started by rc. d
HomeStores personal files of common users
LibIncluding the most basic shared link library and kernel module of the system
Lost + foundIn ext 2 or ext3, it is used to store fragments left by unusual shutdown and disk errors. The BOOT program will use the fsck program to discover these files. Each partition has a lost + found
MediaMount point of the Removable device. The system will mount the USB flash drive, CD, and other devices to this folder.
MNTTemporarily used to mount the file system, for example, FAT32 can be mounted to the device to be accessed.
OPTMost third-party software is installed in this location by default.
ProcThe Virtual File System in the memory stores the status information of the kernel and process, such as CPU info.
RootSuper User Root's home directory, System Administrator
SbinSuper User Root can use executable commands, system management commands, such as fsck, shutdown, reboot
TempTemporary File storage directory
USRThe system stores program directories and user-level software, which are compared with the root directory of the storage system level. Almost all the files and applications to be used are here, such as commands and help files,
VaRStores dynamic program data. Some large files are overflow zones, such as var/log, which stores system logs, var/locall application information and data, and var/spool stores offline program data.
Subdirectory:
Usr/binDaily application storage,
Usr/includeHeader files required for developing and compiling applications in Linux
Usr/localDirectory for storing user self-compiled and installed software
Usr/shareThe system shares the storage location, such as the font man help.
Usr/srcDirectory for storing kernel source code