How linux modifies the language
Today Xiaobian to share with you how to modify the linux language-related knowledge points, detailed content, clear logic, I believe that most people are still too familiar with this knowledge, so share this article for your reference, I hope you read this article after some harvest, let's take a look at it.
Methods: 1. Use "vi /etc/sysconfig/i18n" command to set the contents of "LANG" item, and globally modify the language after restarting;2. Use export command to temporarily modify the language, with the syntax of "export LANG=" language ".
Operating environment: Linux 7.3 system, Dell G3 computer.
How to modify Linux language
Change the default language of Linux:
1. Global modification:
All users have the same unified language setting
Modify the/etc/sysconfig/i18n file
vi /etc/sysconfig/i18n
If you want to change it to Chinese, change it to LANG="zh_CN. UTF-8"
If you want to change it to English, change it to LANG="en_US. UTF-8"
After saving, restart the computer to take effect
2, a single user changes, no impact between different users
Method: Copy/etc/sysconfig/i18n to the home directory of the user you want to change
[shengjk@localhost ~]$ cp /etc/sysconfig/i18n ~/.i18n
If you want to change it to Chinese, change it to LANG="zh_CN. UTF-8"
If you want to change it to English, change it to LANG="en_US. UTF-8"
After saving, restart the computer to take effect
3. Temporary modification of terminal
Execute directly in the terminal:
export LANG="zh_CN.UTF-8" #Chinese export LANG="en_US. UTF-8" #English
Note: /etc/sysconfig/i18n Here is the locale settings of the system, i18n is the abbreviation of internationalization exactly 18 letters between i and n
That's all for "how linux modifies languages". Thanks for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.