I have previously targeted the Blue folder color I modified: cp/etc/dir_colors ~/.dir_colors
Vim ~/.dir_colors, change dir 01;33 to dir 01;36 effect is OK;
But recently browsing the Web page, someone changed the folder color to white, and then added a background color blue,, the effect is more gorgeous,,, is not known for a long time,,,
Paste the original text below:
--------------------------------------------------------------------------------------------------------------- ------------------
Ways to change the LS directory and file color:
First of all:
Vi/etc/dir_colors
Or
Cp/etc/dir_colors ~/.dir_colors
VI ~/.dir_colors
The DIR 01 is set in the file.;"ForlsThe color settings of the command's directory, onrepresents bold, therepresents the font blue.
Change into"DIR 01;Panax Notoginseng; -”,Panax Notoginsengis the font white, -is the word background blue.
Note: The number represents the color, which will be shown below
You can find two lines of comments for the file:
# Text Color Codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
+ = Red
= Green
= Orange
* = Blue
* = Purple
Cyan =
Panax Notoginseng = Grey
max = black background
Background = Red
* = Green background
= Orange background
Background = Blue
Background = Purple
Background = Cyan
Background = Grey
* = Dark Grey
= Light Red
= Light Green
Yellow =
94 = light Blue
Purple = Light
= Turquoise
+ = dark grey background
101 = Light Red background
102 = Light green background
103 = Yellow Background
104 = light blue background
Background = Light Purple
106 = Turquoise Background
After execution:
# eval ' dircolors/etc/dir_colors ' times, I'm modifying the current user's color, so the command is: eval ' dircolors ~/.dir_colors '
Note that the ' symbol ' in the command is the one below the keyboard ~ symbol, and then the LS command is effective.
If you are not accustomed to it, it is recommended to change to DIR 01;36
Linux system changes the LS file and folder color method