Let's give your shell a bit of color. To avoid setting for every user, directly modify the/etc/profile file 1. in Linux, add the following three lines: give your ls a bit of color [html] alias ls = '/bin/ls -- color = auto' give your grep a bit of color [html] alias grep = 'grep -- color' give your vi color [html] alias vi = 'vim '2. add three lines under Mac: give your ls a bit of color [html] alias ls = '/bin/ls-G' give your grep a bit of color [html] alias grep = 'grep -- color' give you vi color [html] alias vi = 'vim '3. modify color/etc/profile add [html] export CLICOLOR = 1 export LSCOLORS = gxfxaxdxcxegedabagacad CLIC OLOR is used to set whether to display the color. CLI is the abbreviation of Command Line Interface. LSCOLORS is used to set the color of various file types when CLICOLOR is enabled. Each two letters in LSCOLORS is a group. The text color and background color of a file type are set. LSCOLORS contains 11 sets of colors. The following file types are set in sequence: [html] directory symbolic link socket pipe executable block special character special executable with setuid bit set executable with setgid bit set directory writable to others, with sticky bit directory writable to others, in without sticky bit LSCOLORS, the letter color is as follows: [html] a black B red c green d brown e blue f ocean red g blue h light gray A black bold B red bold C green bold D brown bold E blue bold F ocean red bold G blue bold H light gray bold