怎么设置linux系统字体颜色,如何修改linux系统字体颜色

2017-01-20 回答

方法一:

1、在~/.bash_profile文件中添加ls_colors

export ls_colors='no=00:fi=00:di=01;33:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;35:*.cmd=01;35:*.exe=01;35:*.com=01;35:*.btm=01;35:*.bat=01;35:*.sh=01;35:*.csh=01;35:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'

2、source ~/.bash_profile即可

方法二:

1、拷贝/etc/dir_colors文件为当前主目录的 .dir_colors

cp /etc/dir_colors ~/.dir_colors

2、修改~/.dir_colors中dir对应的颜色

vim ~/.dir_colors

第59行:dir 01;34(01:粗体,34:蓝色)

修改为:dir 01;33(01:粗体,33:黄色)

解释

1、文件类型

1)直接用,有以下几种:

no normal, norm 全局默认

fi file 普通文件

di dir 目录

ln symlink, link, lnk 链接

pi fifo, pipe 管道

do door door

bd block, blk 块设备

cd char, chr 字符设备

or orphan 目标不存在到符号链接

so sock 套接字socket

su setuid 属主setuid有效的文件

sg setgid 属组setuid有效到文件

tw sticky_other_writable directory that is sticky and other-writable ( t,o w)

ow other_writable directory that is other-writable (o w) and not sticky

st sticky directory with the sticky bit set ( t) and not other-writable

ex exec executable file (i.e. has ‘x’ set in permissions)

mi missing non-existent file pointed to by a symbolic link (visible when you type ls -l)

lc leftcode, left opening terminal code

rc rightcode, right closing terminal code

ec endcode, end non-filename text

2)扩展名通过“.”加上扩展名

*.extension every file using this extension e.g. *.jpg

2、效果的具体代码如下

* 效果列表:

00 默认

01 加粗

04 下划线

05 闪烁

07 反显

08 隐藏

* 颜色列表:

31~37 分别表示前景色为红、绿、橙、蓝、紫、青、灰

90~97 分别表示前景色为深灰、淡红、淡绿、黄色、淡蓝、淡紫、青绿、白色

40~47 分别表示背景色为黑、红、绿、橙、蓝、紫、青、灰

100~106 分别表示背景色为深灰、淡红、淡绿、黄色、淡蓝、淡紫、青绿

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值