1-Linux file name color meaning
blue: directory
White: normal file
Green: executable files
Red: compressed files
Light blue: linked files
Yellow: device file
Gray: other files
Green bottom: It is a directory with permission for others and has write permission
Enter dircolors -p to view the file types corresponding to Linux colors
2-Linux directory structure
directory name |
Directory role |
/bin/ |
The directory for storing system commands, which can be executed by ordinary users and super users |
/sbin/ |
The directory where system commands are stored, only superusers can execute them |
/usr/bin/ |
The directory for storing system commands can be executed by ordinary users and super users, but cannot be executed in single-user mode |
/usr/sbin/ |
The directory for storing system commands can only be executed by super users, and cannot be executed in single-user mode |
/boot/ |
System startup directory, saving system startup-related files, such as kernel files and bootloader files, etc. |
/dev/ |
Device file save location |
/etc/ |
The configuration file save location, etc is the abbreviation of Etcetera (etc.). The configuration files of all services that adopt the default installation method (rpm installation) in the system are all stored in this directory, such as user accounts and passwords, service startup scripts, configuration files of common services, etc. |
/home/ |
Ordinary user's home directory. When creating each user, the user's root directory is saved in this directory |
/lib/ |
The storage location of the function library of the system call |
/lost+found/ |
When the system unexpectedly crashes or the machine shuts down unexpectedly, some file fragments are generated here |
/media/ |
mount directory |
/mnt/ |
Mount directory. This directory is commonly used. is an abbreviation for mount |
/misc/ |
Mount directory. is an abbreviation for miscellaneous (miscellaneous) |
/opt/ |
The location where the software installed by the third party is saved. Currently used to install third-party software in the /usr/local/ directory |
/proc/ |
Virtual file system. The data in this directory is all saved in the memory and disappears after restarting. Mainly save the system kernel, process peripheral status, etc. Is the abbreviation of Processes (process) |
/sys/ |
Virtual file system. The data in this directory is all saved in the memory and disappears after restarting. Mainly save information related to the kernel |
/root/ |
Superuser's home directory |
/srv/ |
Service data directory. After some system services are started, the required data can be saved in this directory. is an abbreviation for service |
/tmp/ |
temporary directory. Nothing in this directory matters |
/usr/ |
System software resource directory. It is the abbreviation of unix shared resources (shared resources). This is a very important directory. Many applications and files of users are placed in this directory, similar to the program files directory under windows. |
/was/ |
Dynamic data storage location. Mainly save cache, logs and files generated by software operation |
Original link: Linux Quick Start 2: Meaning of File Name Color and Directory Structure_SuperFengCode's Blog-CSDN Blog_linux Green Background