您的位置:首页 > 运维架构 > Linux

解决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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐