Home > Article > Operation and Maintenance > Garbled characters appear when ssh accesses linux
The specific method is as follows:
1. Use the ls -a command to find the .bash_profile configuration file;
2. Use the vi editor to open the file , add the following configuration:
LANG=zh_CN.GB2312 export LANG
to display Chinese normally.
(Related learning video sharing: linux video tutorial)
After changing the .bash_profile configuration file, the content of the file is as follows:
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin LANG=zh_CN.GB2312 export PATH export LANG unset USERNAME
Related article tutorials Recommended: linux tutorial
The above is the detailed content of Garbled characters appear when ssh accesses linux. For more information, please follow other related articles on the PHP Chinese website!