When using the ls command to display files and folders in a directory, different colors will be displayed first

# Attribute codes: character attribute
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# 00none 01bold 04underline 05blink 07reverse 08hidden
# Text color codes: character color
# 30= black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
#30 black 31 red 32 green 33 yellow 34 blue 35 pink 36 light blue 37 white
# Background color codes: character background color
# 40 =black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
#40 black 41 red 42 green 43 yellow 44 blue 45 pink 46 light blue 47 white
NORMAL 00 # global default, although everything should be something. Normal file terminal default color
FILE 00 # normal file normal file terminal default color
DIR 01;34 # directory directory bold-blue word
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a Symbolic link bold - light blue
# numerical value, the color is as for the file pointed to.)
FIFO 40;33 # pipe API black background-yellow word
SOCK 01;35 # socket socket API bold-pink word
DOOR 01;35 # door API bold-pink
BLK 40;33;01 # block device driver block device driver bold-black-yellow
CHR 40;33;01 # character device driver character device driver bold-black-yellow
ORPHAN 40 ;31;01 # symlink to nonexistent file points to a symbolic link that does not exist in the file bold-black background-red
text SETUID 37;41 # file that is setuid (u+s) file that is setuid (u+s) red background-white text
SETGID 30;43 # file that is setgid (g+s) Yellow background-black
text STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) +t,o+w files with green background -Black word (not commonly used)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky -t, o+w permission file green background-blue word (not commonly used)
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable +t,ow permission files with blue background-white characters (not commonly used)
# This is for files with execute permission:
EXEC 01;32 with execution Permissions for file bold - green word
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green) .cmd executables bold-green (bright)
#.exe 01;32 .exe file bold-green word
#.com 01;32 .com file bold-green word
#.btm 01;32 .btm file bold-green word
#.bat 01; 32 .bat file bold-green
word.tar 01;31 # archives or compressed (bright red) .tar compressed file bold-red word (bright red)
.tgz 01;31 .tgz file bold- scarlet.arj 01
;31 .arj bold- scarlet.taz 01;31 .taz bold- scarlet.lzh 01;31 .lzh bold-scarlet.zip 01;31 .zip file bold- scarlet.z 01;31 .z bold-scarlet.Z 01;31 .z bold- scarlet.gz 01;31 .gz bold- scarlet.bz2 01; 31 .bz2 file bold-scarlet .deb 01;31 .deb file bold- scarlet.rpm 01;31 .rpm file bold- scarlet.jar 01;31 .jar file bold-scarlet # image formats .jpg 01 ;35 .jpg picture bold-pink word.jpeg 01;35 .jpeg picture bold-pink word.gif 01;35 .gif picture bold-pink word.bmp 01;35 .bmp picture bold-pink word . pbm 01;35 .pbm picture bold-pink word.pgm 01;35 .pgm picture bold-pink word.ppm 01;35 .ppm picture bold-pink word.tga 01;35 .tga picture bold-pink word.xbm 01;35 .xbm image bold - pink word.xpm 01;35 .xpm image bold - pink word





















.tif 01;35 .tif image bold-pink
text.tiff 01;35 .tiff image bold-pink text.png
01;35 .png image bold-pink
text.mov 01;35 .mov video bold- pink
word.mpg 01;35 .mpg video bold-pink
word.mpeg 01;35 .mpeg video bold-pink word.avi 01
;35 .avi video bold-pink
word.fli 01;35 .fli video bold Body-Pink
Word.gl 01;35 .gl Video Bold-Pink
Word.dl
01;35 .dl Video Bold-Pink Word.xcf 01;35 .xcf Video Bold-Pink
Word.xwd 01;35 .xwd Video Bold-Pink Word
# audio formats
.flac 01;35 .flac Audio Bold-Pink Word.mp3
01;35 .mp3 Audio Bold-Pink
Word.mpc 01;35 .mpc Audio Bold-Pink
Word.ogg 01;35 .ogg Audio Bold - Pink Word
.wav 01;35 .wav Audio Bold - Pink Word

PS: The color display of the file's executable permission takes precedence over the file's read-write permission

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326047131&siteId=291194637