Objective
Linux system default directory color is blue, in the black background is not clear, you can use the following 2 ways to modify the LS view color.
Method:
1, copy/etc/dir_colors file is the current home directory. Dir_colors
Cp/etc/dir_colors ~/.dir_colors
2, modify the color of dir in ~/.dir_colors
Locate the following line:
DIR 01;34 (01: Bold, 34: Blue)
To
DIR 01;33 (01: Bold, 33: Yellow)
Explain:
The specific code for the effect is as follows
1) Effect list:
00 Default
01 Bold
04 Underline
05 Flashes
07 Reverse Display
08 Hidden
2) Color list
31~37 The foreground color is red, green, orange, blue, purple, green, gray, respectively
90~97 The foreground color is dark gray, reddish, light green, yellow, blue, violet, turquoise, white
40~47 The background color is black, red, green, orange, blue, purple, green, gray, respectively.
100~106 The background color is dark gray, red, light green, yellow, pale blue, violet, turquoise
Summarize
The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange.