Linux directory structure detailed
/bin: Binary available to all users;
/sbin: Binary files for system administration use;
/boot: Each static file that the bootloader must use: Kernel, Initramfs (INITRD), grub, etc.;
/dev: Store special files or device files;
There are two types of devices: Character devices (linear devices), block devices (random devices);
/etc: The configuration file of the System program; (contains shell scripts for starting/stopping a single process)
/home: The central location of the general family directory; The home directory of each ordinary user is the default subdirectory with the same name as the user name in this directory,/home/username;
/root: Administrator's home directory; optional;
/lib: Provides a shared library for system startup or applications on the root file system (/bin,/sbin, etc.) and provides kernel modules for the kernel
Libc.so.*: Dynamically linked C library;
ld*: Runtime linker/loader;
Modules: The directory used to store kernel modules;
/LIB64:64-bit system-specific path for storing 64-bit shared libraries;
/media: Portable equipment mount point, CDROM, floppy, etc.;
/MNT: Temporary mount point for other file systems;
/OPT: Installation location of the additional application, optional path;
/SRV: Data provided by the current host for the service;
/tmp: Temporary files, including system and user-created temporary files, the file will be deleted in the directory when the system restarts.
/USR:USR Hierarchy, globally shared read-only data path;
Bin, Sbin
LIB, lib64
INCLUDE:C program header file;
Share: Storage location of schema-specific files such as command-book pages and self-documenting documents
Local: another level directory;
Installation location of the X11r6:x-window program
SRC: Where the program source files are stored
/usr/local:local hierarchy, which allows the system administrator to install local applications, and is typically used to install third-party programs;
/var:/var Hierarchy, a directory that stores data that is often changed;
CacheApplication cache data
LibVariable state information
LocalVariable data for/usr/local
LockLock files
Loglog files and directories
OptVariable data for/opt
RunData relevant to running processes
SpoolApplication Spool Data
TMPTemporary files preserved between system reboots
/PROC: Process information; Contains information about system processes and system resources that exist in text form
/SYS:SYSFS virtual file system provides a better way to access kernel data than proc; its main function is to provide a unified model interface for managing Linux devices;
Directory Structure of Linux