Home >Operation and Maintenance >Linux Operation and Maintenance >What do Linux file type colors mean?
The meaning of Linux file type colors: 1. Blue, represents directory type; 2. White, represents general files; 3. Light blue, represents link type; 4. Green, represents executable files; 5. Red, represents compressed files; 6. Yellow, represents device files; 7. Gray, represents other files; 8. Flashing red, represents a problem with the linked file.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
In Linux, when we view a file, we cannot directly see the file type, but Linux provides different colors for different file types. Therefore, we can distinguish specific files by color. type.
Of course, in addition to using colors, we can also use the ls -l
command, or use the file
command to view the file type.
Linux file type color details
File type | |
---|---|
Directory | |
General files | |
Link | |
Executable file | |
Compressed file | |
Device file | |
Other files | |
There is a problem with the linked file |
Linux View file type colors
Instructions
On Linux, different file types are represented by different colors.Case
We first use the ls command to view the files in the /dev directory. The specific command is as follows:ls /dev/After running, the terminal output As follows: We see that different file types display different colors, that is, in Linux, different file types display different colors. Related recommendations: "
Linux Video Tutorial"
The above is the detailed content of What do Linux file type colors mean?. For more information, please follow other related articles on the PHP Chinese website!