Linux system Architecture
/bin binary, used for all users. Executable files, user commands, related to system startup
/sbin system binaries, only administrators use. Management commands, which are related to the system's own startup.
/boot and system boot-related programs. The location where the kernel and bootloader are stored.
/dev Device file storage location.
/etc and host-related configuration files.
/etc/opt
/etc/x11 Graphical Interface configuration file
Home directory for normal users.
/home/username
/lib Library file
Static Library:. A
Dynamic library:. dll. So (Shared object)
/lib/modules kernel module files
/media mount point directory, typically used to mount discs, U-disks
The /mnt mount point directory, which typically mounts additional temporary file systems, such as removable hard disks.
/misc Miscellaneous
/opt Optional Directory, third-party program installation directory.
/proc pseudo file system, kernel mapping file.
/SRV The data storage location generated by some services.
/sys pseudo-File directory, a property mapping file associated with a hardware device, typically used for hardware management. For example, disk dispatch tuning.
/tmp temporary file/var/tmp
/var changeable files
/var/log log files
/var/spool Application Buffering Data
/var/run process number file PID file
/var/lock lock file resource lock record
/var/cache Application Cache Data
/var/lib status information of the change
/var/lib/hwclock Hardware Clock file
/var/mail/var/spool/mail mail File
/var/account Audit Log
/USR global shared read-only file
/usr/share and platform-independent data
Path to the/usr/include header file
/USR/SRC the source program location.
/usr/bin provides the basic functions of the system itself
/usr/sbin provides the basic functions of the system itself
/usr/lib
/usr/local Third party software
/usr/local/bin
/usr/local/sbin
/usr/local/lib
/selinux SELinux related files
Naming rules for files and folders:
1. The length cannot exceed 255 characters.
2. Cannot use/as file name. /is used to make separators.
3. Strictly case-sensitive.
Relative path: Current position.
Absolute path: Starting with the root/
This article is from "Small Private blog" blog, please be sure to keep this source http://ggvylf.blog.51cto.com/784661/1595996
Linux system file structure and function