Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the methods of modifying and viewing the linux character set

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you the "linux character set modification and view methods", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn the "linux character set modification and view methods there are" this article.

First, character set view:

1. Echo command:

[root@rac etc] # echo $LANGen_US.UTF-8

2. Env command:

[root@rac sysconfig] # env | grep LANGLANG=en_US.UTF-8

3. Export command:

[root@rac etc] # export | grep LANGdeclare-x LANG= "en_US.UTF-8"

4. Locale command

[root@rac etc] # localeLANG=en_US.UTF-8LC_CTYPE= "en_US.UTF-8" LC_NUMERIC= "en_US.UTF-8" LC_TIME= "en_US.UTF-8" LC_COLLATE= "en_US.UTF-8" LC_MONETARY= "en_US.UTF-8" LC_MESSAGES= "en_US.UTF-8" LC_PAPER= "en_US.UTF-8" LC_NAME= "en_US.UTF-8" LC_ADDRESS= "en_US.UTF-8 "LC_TELEPHONE=" en_US.UTF-8 "LC_MEASUREMENT=" en_US.UTF-8 "LC_IDENTIFICATION=" en_US.UTF-8 "LC_ALL=

5. View file information:

[root@rac etc] # cat / etc/locale.conf LANG= "en_US.UTF-8"

Second, modify the character set:

1. Direct export modification:

[root@rac etc] # export LANG= "en_US.UTF-8"

2. Modify the configuration file:

[root@rac etc] # vim / etc/locale.conf LANG= "en_US.UTF-8" [root@rac etc] # source / etc/locale.conf

3. Modify the environment variable file. Bash_profile

[root@rac] # vim. Bash _ profileexport LANG= "en_US.UTF-8" [root@rac ~] #. Bash _ profile above is all the contents of this article entitled "what are the ways to modify and view the linux character set?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report