Centos6.5 modify the language of a common user, centos6.5 common user

Source: Internet
Author: User

Centos6.5 modify the language of a common user, centos6.5 common user
When installing centos, select the Chinese environment and create two new users, one isRootUser, one isTestUser. However, after the installation is complete, I want to modify the environment to English. After searching, I found that vim can be modified./Etc/sysconfig/i18n, Change LANG = "zh_CN.UTF-8" to LANG ="En_US.UTF-8", Save and complete the modification. After restart, the root user interface becomes English, but the test user interface is still Chinese. Then I delete the test user, another user, also called test, was created and started to enter the test user interface. It was found that it was still a Chinese environment, so it was depressing. After Continuous testing, it was found that the following method is feasible:

[Root user] #Vim/etc/profile

Find the export Statement and add it before the statementLANG = en_US.UTF-8 ″

Append LANG to the export.

Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRCLANG

Save the configuration and re-enter the test user interface. The modification is successful.



How do root users of centos 65 switch to common users?

Su username or su-username
If su username is used, only the user is switched and the operating environment and environment variables remain unchanged.
The user and operating environment change if su-username is used.

For details, refer to the following
Wenku.baidu.com/...oEjgXi

How to change the system default language of CentOS Linux (set to Chinese)

After CentOS is installed in Chinese, garbled characters are displayed. Therefore, it is determined that the default CentOS language is not Chinese. ================================================ Modify the default language in linux/ etc/sysconfig/i18n, original content: LANG = "zh_CN.UTF-8" SYSFONT = "latarcyrheb-sun16" SUPPORTED = "zh_CN.UTF-8: zh_CN: zh" changed to: LANG = "en_US.UTF-8" SUPPORTED = "en_US.UTF-8: en_US: en "SYSFONT =" latarcyrheb-sun16 "restart now! LANG = "zh_CN.GB18030" SUPPORTED = "zh_CN.GB18030: zh_CN: zh: en_US.UTF-8: en_US: en "SYSFONT =" latarcyrheb-sun16 "/etc/sysconfig/i18n here stores the system's regional language settings, i18n is the abbreviation of internationalization. the first line of the 18 letters between I and n indicates the language environment variable settings of your current system. The second line of zh_CN.GB18030 indicates that the system has preset language support, language not in the project cannot normally display the third line definition console terminal font, the font displayed when you log on to the text is this latarcyrheb-sun16

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.