The Linux File System adopts a hierarchical tree directory structure. The top layer is "/", and other directories are created below, linux allows manufacturers and individuals to modify the operating system, which may cause directory inconsistency. Therefore, a set of standardized file directory naming and storage standard files are developed. This is: filesystem Hierarchy Standard (FHS). Publishers, including the RedHat manufacturer, must comply with this standard. If you are interested, you can refer to this address for instructions:
Http://www.pathname.com/fhs/
Below I will list a default directory for llinux installation for your convenience:
/ |
Linux root directory |
/Bin |
The abbreviation of binary, which stores user executable information.ProgramSuch as LS and CP, and other shellr such as Bash. |
/Boot |
Including vmlinuz, initrd. IMG and other startup files, which may not work properly after any changes. |
/Dev |
Interface Device File directory, such as your hard disk: hda |
/Etc |
Passwd files related to system settings and Management |
/Etc/X11 |
X Windows system setting directory |
/Home |
The main directory of a common user, such as the FTP directory. |
/Lib |
Library of the shared function library required to execute binary files in the/bin and/sbin Directories |
/Mnt |
File System loading point of each device. For example,/mnt/CDROM is the loading point of the optical drive. |
/OPT |
Providing Space is called a large and fixed application for storing files |
/Proc |
The ps command query information is the same as the information here, and is the information of the system kernel and program execution. |
/Root |
Administrator's home directory |
/Sbin |
Binary programs required for system startup such as lilo |
/Tmp |
Temporary |
/Usr |
Stores user information such as system commands and applications. |
/Usr/bin |
Stores user executable programs, such as grep and mdir. |
/Usr/doc |
Directory for storing various program files |
/Usr/include |
Save the header file loaded in C Language |
/Usr/include/X11 |
Save the header file that is loaded by the X Windows program |
/Usr/info |
GNU program file directory |
/Usr/lib |
Function library |
/Usr/lib/X11 |
Function library |
/Usr/local |
Provide self-installed application location |
/Usr/man |
Directory for storing online instruction files |
/Usr/sbin |
Store frequently used programs, such as showmount |
/Usr/src |
Save the original program file |
/Usr/x11r6/bin |
Stores the execution program of X Windows system. |
/Var |
Variable, a variable program directory, such as log |
|
|
|
|
Note that the 2.1 forbidden file is not a text file but an executable file.