What is the meaning of the Linux file name color

  
                  

Question: I know that in Windows, the file name of a general file is black. If it is blue, it means compressed, and green means encrypted file. But I found that the console of Linux is more color, because I just got into Linux, I don't know what these colors mean, and why is my console only white?


Answer: In Linux, the color of the file has meaning. Among them, blue indicates the directory, green indicates the executable file, red indicates the compressed file, light blue indicates the linked file, gray indicates other files, red flashing indicates that there is a problem with the linked file, and yellow is the device file, including block, char, Fifo. Use the "dircolors -p" command to see the default color settings, including various colors and definitions of "bold", underline, blinking, etc. Of course, you can also modify the environment variable "$LS_COLORS".

Copyright © Windows knowledge All Rights Reserved