Commands that must be used when checking logs. In order to facilitate display and viewing in the terminal, you can add color and highlight settings.
What I am used to: GREP_COLOR='a;b' a=4 means underline, b=41 means red background highlight
Add two lines to the ~/.bashrc file:
export GREP_OPTIONS='--color=auto' export GREP_COLOR='4;41'
Effective immediately, source ~/.bashrc
Reference: http://www.linuxidc.com/Linux/2014-09/106871.htm
export GREP_COLOR='a;b' #The default is 1;31, which is highlighted red; you can set different colors according to your own preferences;
a can choose: [0,1,4,5,7,8]
0 turns off all properties
1 Set high brightness
4 underscore
5 flashes
7 Invert
8 Blanking
b can choose:【30-37 or 40-47】
30 black
31 red
32 green
33 yellow
34 blue
35 purple
36 cyan
37 white
30 — 37 Set the foreground color
40 — 47 Set background color