有时候用man查看shell命令的用法时候由于本上 里面的参数含义不懂,还要用非母语看,理解起来非常吃力。那么干脆用中文版的man吧。步骤如下:
1、安装man中文包
sudo apt-get install manpages-zh
2、备份man配置文件(要养成良好的习惯,特别经常做小白鼠的人,做此步骤是方便修复)
sudo cp /etc/manpath.config /etc/manpath.config.backup
3、修改man配置文件
sudo gedit /etc/manpath.config
将/etc/manpath.config 文件里所有/usr/share/man 路径,替换为/usr/share/man/zh_CN(参考:http://blog.csdn.net/sayigood/archive/2010/04/05/5451087.aspx ):
:%s# /usr/share/man# /usr/share/man/zh_CN#g
4、finish。