解决linux系统不能使用方向键执行命令的问题
2017-06-07 12:56
926 查看
set -o | grep history
If you get "history off" then add this line at the end of your ~/.bashrc:
set -o history
Next try:
echo $HISTFILE
echo $HISTSIZE
echo $HISTFILESIZE
If the first one is blank or /dev/null, add this line to the end of your ~/.bashrc:
HISTFILE=$HOME/.bash_history
If either of the last two print 0, set them to some number like the default of 500:
HISTFILESIZE=500
HISTSIZE=500
shareimprove this answer
If you get "history off" then add this line at the end of your ~/.bashrc:
set -o history
Next try:
echo $HISTFILE
echo $HISTSIZE
echo $HISTFILESIZE
If the first one is blank or /dev/null, add this line to the end of your ~/.bashrc:
HISTFILE=$HOME/.bash_history
If either of the last two print 0, set them to some number like the default of 500:
HISTFILESIZE=500
HISTSIZE=500
shareimprove this answer
相关文章推荐
- 解决java使用Runtime.exec执行linux复杂命令不成功问题
- jmap命令在linux系统执行不了问题解决
- 解决Linux下ifconfig、shutdown等Shell命令不能使用的问题
- Linux环境下的SQL*PLUS及RMAN中不能使用上下方向键查看命令历史的解决方法
- 解决Ubuntu中vi命令的编辑模式下不能正常使用方向键和退格键的问题
- 解决Ubuntu中vi命令的编辑模式下不能正常使用方向键和退格键的问题
- Linux 系统中screen命令不能使用的解决办法,screen包的正确安装
- [Linux] 解决RedHat 中 ifconfig 命令不能使用的问题
- linux新装的系统下su命令不能使用的解决办法
- Linux 修改系统变量错误大致基础命令不能使用问题修复!
- linux中修改环境变量之后导致系统崩溃(用户所有命令不能使用)的解决办法
- 如何解决虚拟机中的ubuntu系统方向键与退格键不能正常使用的问题
- 误删除系统libselinux.SO.1,导致系统命令基本上都不能使用--附解决问题的整个过程
- python-解决在linux 操作系统中的input交互模式下,不能使用backspace和direction arrow(退格键和方向键)的问题
- 解决vi编辑器不能使用方向键和退格键问题
- [置顶] 解决vi编辑器不能使用方向键和退格键问题
- 在linux系统下编程,解决scanf不能输入空格的问题
- Ubuntu中使用SSHSecure Shell测试Windows与Linux系统间操作及传输问题解决大全
- Linux--14:ubuntu12.04 vi不能正常使用、右上角出现红杠提醒更新出问题、网速比相同条件下windows下慢 解决方法
- 解决ssh远程执行命令无法使用awk的问题