Everyone knows it is important to learn the Linux system, to find the Man Handbook Help, but the default Linux man manual is an English document, it is important to quickly read the English men, but the configuration of Chinese men can also allow themselves to learn faster! Of course, we can not stop learning English!
1. Go to the official website to download the man source package, as follows:
cd/home/job/
wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.1.tar.gz/ 13275fd039de8788b15151c896150bc4/manpages-zh-1.5.1.tar.gz
2. Unzip and compile the installation as follows:
Tar zxvf manpages-zh-1.5.1.tar.gz
CD manpages-zh-1.5.1
./configure--DISABLE-ZHTW
Make && make install
3. In order not to offset the man, we new Sman command as Chinese query
Vim ~/.bash_profile
Increase:
Alias sman= ' Man-m/usr/local/share/man/zh_cn ' #-m parameter is the document path when specifying man lookup, I point to the path of the Chinese document, the general man under the ZH_CN is
SOURCE ~/.bash_profile #使编辑的内容生效
4. Next man is English search, Sman is Chinese search
Linux installs Man handbook in Chinese and keeps English man handbook