What are the methods of modifying and viewing the linux character set
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!