Set Linux to support Chinese

1. First enter locale in command, you can see that the default system language under Linux is English

 

 2. vim ~/.bashrc to open this file, this folder is equivalent to the system configuration file

 

 3. After opening, enter the last three lines of commands into the document, and finally save and exit

 

 4. Run this modified file, the command is source ~/.bashrc, if the run is not successful, you can add sudo before the command, sudo is run with root authority

  • After running, enter the locale command to check whether the system language has been changed to

 

 5. View current file information

 

6. Our Chinese display is set successfully

7. If there is still a problem, check whether the encoding format of the xshell connecting terminal is utf-8

Guess you like

Origin blog.csdn.net/qq_45533841/article/details/112727936