Default:
Blue represents the folder;
The Green representative can run the file.
red indicates a compressed file.
light blue indicates a linked file;
grey indicates other documents;
flashing red indicates a problem with the linked file
Yellow indicates the device file.
Very uncomfortable how to do, change!
# attributecodes: Character attributes
# 00=none 01=bold 04=underscore 05=blink 07=reverse08=concealed
#00无 01 Bold 04 Underline 05 blinking 07 Reverse 08 Hidden
# Text Color codes: Character color
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan37=white
#30黑 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=cyan47=white
#40黑 41 Red 42 green 43 yellow 44 blue 45 pink 46 light Blue 47 White
NORMAL XX # Global default, although everything should besomething. Normal file terminal default color
File xx # normal files terminal default color
DIR 01;34 # Directory folder bold-blue Word
Link 01;36 # Symbolic link. (If you set this to ' target ' instead ofa symbolic link bold-light blue Word
# numerical value, the color is as for the file pointed to.)
FIFO 40;33 # Pipe Pipeline API Black Bottom-Huang
SOCK 01;35 # Socket Socket API Bold-Pink Word
DOOR 01;35 # DOOR Door API Bold-Pink Word
BLK 40;33;01 # block device driver blocks devices drive bold-black bottom-Huang
CHR 40;33;01 # character device driver character device driver bold-black bottom-Huang
Orphan 40;31;01 # symlink to nonexistent file pointing to a non-existent symbolic link bold-black bottom-Scarlet Letter
SETUID 37;41 # file is SETUID (u+s) specifies the UID files red Bottom-white
SETGID 30;43 # file is SETGID (g+s) specifies GID files Huang Di-Black Word
Sticky_other_writable 30;42 # dir that's STICKY and other-writable (+t,o+w) +t,o+w permissions file Green bottom-black word (infrequently used)
Other_writable 34;42 # dir that's other-writable (o+w) and notsticky-t,o+w permissions file Green bottom-blue word (infrequently used)
STICKY 37;44 # dir with the STICKY bit set (+t) and notother-writable +t,o-w permissions file Blue bottom-white (infrequently used)
# This are for files with Execute permission:
EXEC 01;32 file with permission to run bold-green word
# List Any file extensions like '. Gz ' or '. Tar ' so you would likels
# to Colorize below. Put the extension, a space, and the color initstring.
# (and any comments your want to add after a ' # ')
# If You use Dos-style suffixes, the want to uncomment thefollowing:
#.cmd 01;32 # executables (bright green). Cmd to run file bold-green word (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-Scarlet Letter (Bright)
. tgz 01;31. tgz file Bold-Red character
. ARJ 01;31. arj file Bold-Red character
. Taz 01;31. Taz file Bold-Scarlet Letter
. LZH 01;31. lzh file Bold-Red character
. zip 01;31. zip file bold-Scarlet Letter
. z 01;31. z file Bold-red character
. Z 01;31. Z File Bold-red character
. gz 01;31. gz file Bold-Scarlet Letter
. bz2 01;31. bz2 file Bold-Red character
. deb 01;31. deb file Bold-red character
. rpm 01;31. rpm Files Bold-red text
. jar 01;31. jar file Bold-Scarlet Letter
# image formats
. jpg 01;35. jpg pictures bold-pink word
. jpeg 01;35. JPEG picture bold-Pink word
. gif 01;35. gif pictures bold-pink word
. bmp 01;35. bmp pictures Bold-pink word
. PBM 01;35. PBM picture Bold-pink word
. PGM 01;35. PGM pictures bold-pink word
. ppm 01;35. ppm picture bold-pink word
. TGA 01;35. TGA picture Bold-pink word
. XBM 01;35. XBM picture Bold-Pink word
. xpm 01;35. xpm pictures Bold-Pink word
. tif 01;35. tif pictures bold-pink word
. TIFF 01;35. TIFF picture Bold-Pink word
. png 01;35. png image Bold-pink word
. 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-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
In fact, you can use the Dircolor command to display the file name color setting (DIRCOLOR-P) (which can also be set).
For more information on how to change the same, find the following article:
1. Use the dircolors command to see the value of the current file name display color of our system and then redirect the pipe to a random file under the user's folder (here we have created a. dir_colors file)
Command 1:CD ~
Command 2:dircolors-p >. dir_colors
2. Open the. dir_colors file with vim and find "dir 01;34"//Here the 01 indicates a high-brightness display, 34 is blue, 33 means yellow
Change to "DIR 01;33". Save exit
3. In order to import the changed configuration file into Dircolors, we take the following scenarios such as
Open the. bashrc file under the user folder and find a similar "eval ' dircolors-b '" (assuming you didn't join yourself).
change to eval ' dircolors-b. Dir_colors ' Save exit //Here's the. Dir_colors is the file we created earlier.
4. in order for the changes to take effect, exit and enter the system again
Command: Exit
5. You will be able to display the folder according to your meaning.
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Ubuntu Terminal Font Color scheme