Searching previous command history with PageUp in 14.04

Solution 1:

Try this in ~/.inputrc

"\e[5~": history-search-backward   
"\e[6~": history-search-forward  

and reopen terminal.

Solution 2:

\e[A and \e[B are actually the Up and Down arrow keys. To test what a key is, run cat and then press the key:

$ cat
^[[A
^[[B

^[[5~
^[[6~

Those are , , Page Up and Page Down respectively. The ^[ stands for Esc, or \e in terms of .inputrc.

So, if you added \e[A and \e[B, you should be able to browse history using arrow keys. For Page Up and Page Down, use \e[5~ and \e[6~.