一、Xshell设置UTF-8
系统中输入: locale
输出显示 : LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
为了在xshell中正常的显示中文,我们要把xshell编码方式改成utf8,
[文件]-->[打开]-->在打开的会话(session)中选择连接的那个 ,点击属性(properties) ->终端(Terminal ) ,在右边的编码转换选择utf8就可以了。
二、鼠标左键复制,右键粘贴