ubuntu modify ls directory display color

  1. 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

  1. 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)
  2. source .bashrc into force
Published 100 original articles · won praise 6 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43903378/article/details/104015253