具体方法如下:
1、使用ls -a命令查找.bash_profile配置文件;
2、使用vi编辑器打开该文件,在其中加入如下配置:
lang=zh_cn.gb2312export lang
即可正常显示中文。
(相关学习视频分享:linux视频教程)
更改 .bash_profile 配置文件后,该文件内容如下:
# .bash_profile# get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi# user specific environment and startup programspath=$path:$home/binlang=zh_cn.gb2312export pathexport langunset username
相关文章教程推荐:linux教程
以上就是ssh访问linux出现乱码的详细内容。