Home >Operation and Maintenance >Linux Operation and Maintenance >What do Linux file type colors mean?

What do Linux file type colors mean?

青灯夜游
青灯夜游Original
2023-02-01 18:58:509922browse

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.

What do Linux file type colors mean?

#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

##ColorFile typeBlueDirectoryWhiteGeneral filesLight blueLinkGreenExecutable fileRedCompressed fileYellowDevice fileGrayOther filesRed flashingThere 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:

What do Linux file type colors mean?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn