Linux installs Man handbook in Chinese and keeps English man handbook

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.