在Linux系统中,找到用户目录下的.bashrc文件
cd ~
vi .bashrc #这个文件名有的系统可能不全是这样的,比如.bash_xxx都是有可能的,打开看下,如果里面都是些环境变量配置基本上就可以断定了。
####比如我这个显示的是这样的# ~/.bashrc: executed by bash(1) for non-login shells.# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)# for examples# If not running interactively, don't do anythingcase $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.# See bash(1) for more options####。。。。。
在这个文件最后加一行:export LC_CTYPE=en_US.UTF-8
然后退出vi,source ~/.bashrc 就可以了,重连ssh就能正常显示了。