Chinaunix首页 | 论坛 | 博客
  • 博客访问: 411861
  • 博文数量: 77
  • 博客积分: 2303
  • 博客等级: 大尉
  • 技术积分: 808
  • 用 户 组: 普通用户
  • 注册时间: 2004-11-30 09:15
文章存档

2015年(1)

2013年(3)

2012年(2)

2011年(46)

2009年(4)

2008年(2)

2005年(12)

2004年(7)

我的朋友

分类: 系统运维

2011-02-14 14:52:15

在securecrt等终端中输入中文
  1. LANG=zh;export LANG
在$HOME/.profile中或/etc/profile中加入
  1. stty cs8 -istrip
到这里,如果shell是sh的话就可以输入中文了,如果shell是bash还要做如下:
在$HOME/.inputrc中
  1. set meta-flag on
  2. set output-meta on
  3. set convert-meta off

阅读(2631) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~