How to set the default language for Linux shell commands

Source: Internet
Author: User
Tags i18n linux shell commands

In Linux, the language setting and localization setting are really complicated, and garbled characters may occur from time to time.

In general, the language displayed in Linux is determined by environment variables.

These environment variables include:

$ Lang/$ language/$ lc_ctype ....

You can use the locale command to view the values of these variables.

To set these variables, run the Export command. For example:

# Export lang = uc_en

# Export lc_ctype = C

You can add these commands ~ /. Bash_profile file.

In addition, the file/etc/sysconfig/i18n can also be configured with language options.

The following is the modification method. You can change the default language to English:

# Modify the following three lines in VI/etc/sysconfig/i18n:

Lang = "en_US.UTF-8"

Supported = "en_US.UTF-8: en_us: en"

Sysfont = "latarcyrheb-sun16"

Related Article

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.