linux下shell中使用上下键翻出历史命名时出现^[[A^[[A^[[A^[[B^[[B的问题解决
2014-11-09 19:53
369 查看
今天在使用kali linux的时候,使用上下键想翻出历史命令时,却出现^[[A^[[A^[[A^[[B^[[B这种东东,而tab键补全命令的功能也无法使用。
最终发现是由于当前用户使用的shell是/bin/sh的原因。
useradd的时候没有指定用户的shell类型,因此默认为/bin/sh。
1:查看当前用户的shell类型命令: echo $SHELL
2:改变当前用户登录默认的shell:chsh -s /bin/bash username 或者使用usermod -s /bin/bash username命令
默认的shell改成/bin/bash之后正常了。
bash和sh的区别:http://hi.baidu.com/aaronike/item/08cfca8ab2ca145d850fabd3
sh其实是dbash的软连接。
最终发现是由于当前用户使用的shell是/bin/sh的原因。
useradd的时候没有指定用户的shell类型,因此默认为/bin/sh。
1:查看当前用户的shell类型命令: echo $SHELL
2:改变当前用户登录默认的shell:chsh -s /bin/bash username 或者使用usermod -s /bin/bash username命令
默认的shell改成/bin/bash之后正常了。
bash和sh的区别:http://hi.baidu.com/aaronike/item/08cfca8ab2ca145d850fabd3
sh其实是dbash的软连接。
相关文章推荐
- 解决Python shell出现显示「^[[C^[[D,上下键没法使用问题
- 使用SSH Secure Shell登陆Linux出现乱码的解决
- 更新-解决linux oracle shell上下箭调用历史命令
- Linux下 android SDK安装及使用时出现的几个问题解决办法(我遇到的)
- rlwrap解决linux下sqlplus输用上下键无法查看历史消息的问题
- 使用SSH Secure Shell登陆Linux出现乱码的解决
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- linux — Centos 7(第一天) 使用时出现的问题及解决方法
- 解决 linux下使用eclipse调用gdal 出现undefined reference to `GDALAllRegister'问题
- Linux--14:ubuntu12.04 vi不能正常使用、右上角出现红杠提醒更新出问题、网速比相同条件下windows下慢 解决方法
- 解决linux oracle shell上下箭调用历史命令
- 在windows下使用putty连接虚拟中的linux出现主机拒绝的问题(已解决)
- 解决Linux下ifconfig、shutdown等Shell命令不能使用的问题
- Ubuntu中使用SSHSecure Shell测试Windows与Linux系统间操作及传输问题解决大全
- Linux中oracle学习总结——解决backspace和上下键使用出现乱码
- Linux中oracle是如何解决backspace和上下键使用出现乱码
- 使用clonezilla做Linux备份及还原出现的问题及解决方法
- linux终端使用python的matplotlib模块画图出现“could not open display”问题解决