Linux terminal and vi Chinese settings

Source: Internet
Author: User
Linux terminal and vi Chinese settings-general Linux technology-Linux technology and application information, the following is a detailed description. # Uname-

Linux localhost. localdomain 2.6.9-42. ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/Linux

1. display Chinese characters on the console Terminal

Modify the/etc/sysconfig/i18n file as follows:

# LANG = "en_US.UTF-8"
LANG = "zh_CN.GB2312"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"

Ls-la

Total usage 21100
Drwxr-x --- 16 root 4096 February 1 09:47.
Drwxr-xr-x 25 root 4096 December 4 09:44 ..
-Rw-r -- 1 root 1532 anaconda-ks.cfg
-Rw ------- 1 root 13250 February 1 09:51. bash_history
-Rw-r -- 1 root 24 2005-02-22. bash_logout
-Rw-r -- 1 root 191 2005-02-22. bash_profile
-Rw-r -- 1 root 176 2005-02-22. bashrc

......

2. Question about displaying Chinese Characters in vi

Edit the file. viminfo and modify it as follows * encoding = UTF-8, gbk. Log On again and enter the displayed Chinese characters.

Source: unixman.cublog.cn

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.