Ubuntu terminal colors

Today I run ubuntu docker image on powershell and find the directory color is blue, so I want to change it.

Step 1:

set ubuntu proxy:

export http_proxy=http://xx:80 not http_proxy=xx:80 otherwise it will give error

export https_proxy=https://xx:80

Step 2:

change color 

method 1:

dircolors -p > .dircolors

vim .dircolors

DIR 01;34 -> DIR 01;35

save and exit 

then . .bashrc

样式参数参考:

这里的01表示高亮度显示,34表示蓝色,35表示洋红色
00 — Normal (no color, no bold) 
01 — Bold //粗体 文字颜色 30 — Black //黑色 31 — Red //红色 32 — Green //绿色 33 — Yellow //黄色 34 — Blue //蓝色 35 — Magenta //洋红色 36 — Cyan //蓝绿色 37 — White //白色 

背景颜色

40 — Black 
41 — Red 
42 — Green 
43 — Yellow 
44 — Blue 
45 — Magenta 
46 — Cyan 
47 – White

默认颜色所代表的的文件类型说明:

白色:    表示普通文件
蓝色:    表示目录
绿色:    表示可执行文件
红色:    表示压缩文件
蓝绿色:  链接文件
红色闪烁:表示链接的文件有问题
黄色:    表示设备文件
灰色:    表示其他文件


猜你喜欢

转载自www.cnblogs.com/seeken/p/10678727.html
今日推荐