时间: | 分类: 易失
一、问题
ubuntu系统不能使用pageup/pagedown便捷查询使用历史记录
二、解决办法
1、编辑/etc/inputrc文件,找到“history-search-backward”,“history-search-forward”的行
sudo vim /etc/inputrc内容如下:
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward2、去掉前面的“#”注释,保存
结果如下:
# alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward3、重新登陆
三、结果
能够正常使用