Man is a useful tool in learning the Linux commands, but it is difficult for many people with limited English proficiency to learn more about the steps to install the Chinese version. Of course, the English proficiency is a need for self-review, in the hope of learning to use the Chinese and English control to see. Achieve the results of Linux and English progress together. This article takes the most commonly used CentOS as an example. Explains how to install the Chinese version of Man.
Find man Chinese installation package
$ yum List |grep Man.*zh
Man-pages-zh-cn.noarch 1.5.2-4.el7 @base
From this you can find the above installation package, and if you cannot find it, perform the yum-y update installation package.
Execute the Install command
sudo yum install Man-pages-zh-cn.noarch
Edit the configuration file to make the Chinese package effective
#vi. BASHRC
Added in. BASHRC:
Alias cman= ' Man-m/usr//share/man/zh_cn '
#source. BASHRC//executes at the command line, in order for the alias you just added to take effect
ok! can now use the Chinese version of Man, here is Cman, when you find that you can use your own man, as well as the installation of Chinese Cman.
Explanation: The man-m path defines a set of directories to find the Man manual page. If this parameter is not specified, the SYSTEM environment variable Manpath will be used. If this environment variable is not found, the lookup specified in the default/etc/man.config file is pressed. An empty MANPATH substring indicates the use of the default manifest.
This article is from the "Heart to Sunshine" blog, please be sure to keep this source http://9762617.blog.51cto.com/9752617/1678917
CentOS 7 Installation man Chinese version manual