Ubuntu Manual 彩色显示

508阅读 0评论2010-05-26 iceway_cu
分类:LINUX

常用的有两种方法:

1. 导入以下变量, 可以保存在.bashrc文件中.

export LESS_TERMCAP_mb=$'\E[01;31m'

export LESS_TERMCAP_md=$'\E[01;31m'

export LESS_TERMCAP_me=$'\E[0m'

export LESS_TERMCAP_se=$'\E[0m'

export LESS_TERMCAP_so=$'\E[01;44;33m'

export LESS_TERMCAP_ue=$'\E[0m'

export LESS_TERMCAP_us=$'\E[01;32m'


2. 安装most工具, 并设置变量MANPAGER.

sudo apt-get install most

export MANPAGER="/usr/bin/most -s"




效果对比图:



上一篇:Ubuntu 桌面版升级
下一篇:upstart 和ubuntu启动过程原理介绍