- ls to view directories, the background is black, the color is dark blue directory, basically do not know.
Solution
Because the / etc under ubuntu / directory does not DIR_COLORS, so took a job to keep.
2. Use dircolors command to view our current system file name display color value, and then use a pipe to redirect to any file in the user directory (where we created a
Ge .dircolors file)
command 1: cd ~
Command 2 : dircolors -p> .dircolors
- Open .dircolors file with vim, and then find the "DIR 01; 34", changed to "DIR 01; 35", save and exit. (01 represented here highlighted, 34 represents a blue, 35 denotes magenta)
- source .bashrc into force