In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.