Author: ZWE7616175
Original: https: //blog.csdn.net/zwe7616175/article/details/79598769
When compiling a program, we often have more or less errors. Under Linux, the default display is English, which is not very convenient for error checking. This blog focuses on introducing you to a simple method. Change the display under Linux to the familiar Chinese display.
First enter locale in the command, you can see that the default system language under Linux is English
vim ~/.bashrc. Open this folder. This folder is equivalent to
opening the system configuration file . Enter the last three lines of commands into the file. Finally Save and exit to
run this modified file, the command is source ~/.bashrc, if the run is not successful, you can add sudo before the command, sudo is root privileges to run
, and then enter the locale command to see if the system language has been changed to
view the current
Our Chinese display of file information is set successfully!