In linux, how to modify the language environment variable of a user-Linux Enterprise Application-Linux server application information is as follows. The problem is that, on the managed server, some can enter Chinese characters in the terminal, some cannot, and garbled characters will appear. Compare the corresponding environment variables. We found that the environment variables for the language are different. I searched a lot of materials online and did not find a solution. After reading the relevant sections in the book, I found a solution. (The amount of information on the network is too large, sometimes it will waste a lot of time, but you still don't find what you want)
Record the methods and principles.
Bash shell configuration file:
/Etc/profile is used to set several important variables, such as PATH, USER, MAIL, HOSTNAME, HISTSIZE, and UMASK.