Set ~ / .bash_profile or ~ / .bashrc Add the following two sentences:
Export LC_CTYPE = zh_cn.gb2312
Export lang = en_us.utf-8
The remaining EN_US.UTF-8 can be maintained. The premise is that you have installed Chinese language packs.
Note: .bash_profile The profile loaded when logging in, only when the user logs in
.bashrc is Shell Profile, once performed a shell, it will be executed once
Use the locale command to view these settings