1.安装中文帮助文档
[root@localhost ~]# yum install -y man-pages-zh-CN*
2.编辑配置文件
[root@localhost ~]# vim .bashrc
添加
alias cman='man -M /usr//share/man/zh_CN'
[root@localhost ~]# cat .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias cman='man -M /usr//share/man/zh_CN' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
3.更新配置
[root@localhost ~]# source .bashrc
4.使用cman
[root@localhost ~]# cman ls
转载于:https://blog.51cto.com/lullaby/1948852