简介
most
most is a paging program that displays,one windowful at a time,the contents of a file on a terminal.
It pauses after each windowful and prints on the window status line the screen the file name,
current line number, and the percentage of the file so far displayed.
一、debian
1、安装包
apt-get -y install most
2、在.bashrc最后1行添加
export PAGER="/usr/bin/most -s"
3、生效
source .bashrc
二、centos
1、直接在.bashrc最后1行添加man函数
man ()
{
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "[email protected]"
}
2、yum方式安装most
yum -y install most
三、参考
http://www.cyberciti.biz/faq/unix-linux-color-man-pages-configuration/
四、直接上图