目前还有一种中文文档查看方法就是使用xhsell在命令后面加上--help,自带翻译!
下载中文man包
源码的网址:https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN
找到源码包
wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.2.tar.bz2/cab232c7bb49b214c2f7ee44f7f35900/manpages-zh-1.5.2.tar.bz2
yum install bzip2
tar jxvf manpages-zh-1.5.2.tar.bz2
./configure --disable-zhtw #默认安装
make && make install
为了不抵消man,我们新建cman命令作为中文查询:
cd ~
vi .bash_profile
在.bash_profile中增加:
alias cman='man -M /usr/local/share/man/zh_CN'
更新bash_profile 使其生效:
source .bash_profile