Ubuntu man commands help How to set up the Chinese version

Source: Internet
Author: User

Original address: Ubuntu man command help How to set the Chinese version


When we use commands in Ubuntu, we often need to use the Man command to help you see the meaning of the command parameters. But our English level is different, so a lot of English explanations are not understood at all.

[Email protected]:~# man VI

For example, using this command to view VI's help, plain English is difficult to understand:

In fact, Ubuntu has a man's Chinese bag, only a few lines of command installation configuration can display Chinese help. The command is as follows:

Apt-get install manpages-zhvi/etc/manpath.config:1, $s #/usr/share/man#/usr/share/man/zh_cn#g

The above 3 lines of command can be done.

First command: Download the Chinese pack for man help

Second command: Edit the man's configuration file with VI

The third command: Replace all/usr/share/man with/USR/SHARE/MAN/ZH_CN,

: 1, $s #/usr/share/man#/usr/share/man/zh_cn#g

Description

1. When editing a file with the VI command, press the: Key before using the command, then enter command 1, $s #/usr/share/man#/usr/share/man/zh_cn#g, enter

2. Replace line 1th to the last line with all/usr/share/man as/USR/SHARE/MAN/ZH_CN

Once this is configured, run the command again to see the Chinese help

[Email protected]:~# man VI

Ubuntu man commands help How to set up the Chinese version

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.