终端默认背景颜色为白色,(终端->偏好设置->描述文本),可修改背景颜色与字体大小。vim
cd ~bash
touch .bash_profile # 注意文件前有“.”ssh
vim .bash_profilesocket
export LS_OPTIONS='--color=auto' # 若是没有指定,则自动选择颜色工具
export CLICOLOR='Yes' #是否输出颜色字体
export LSCOLORS='CxfxcxdxbxegedabagGxGx' #指定颜色ui
source .bash_profileorm
directory # 文件夹目录ip
symbolic linkci
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, without sticky bit
a 黑色
b 红色
c 绿色
d 棕色
e 蓝色
f 洋红色
g 青色
h 浅灰色
A 黑色粗体
B 红色粗体
C 绿色粗体
D 棕色粗体
E 蓝色粗体
F 洋红色粗体
G 青色粗体
H 浅灰色粗体
x 系统默认颜色
绿色粗体'CxfxcxdxbxegedabagGxGx'
蓝色粗体'ExfxcxdxbxegedabagGxGx'