Skip to main content

History search

Easy way to repeat often used commands on the linux console ... add history search backwards to .inputrc in your home directory:

cd ~

vim .inputrc

The content of .inputrc should be:

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


 

After editing the file, type:

bind -f ~/.inputrc

You should now be able to use this functionality by hitting Img-up and Img-down (page up, page downl) keys on your keyboard.

--

Keywords for myself, because I search for this only once in a while ...:

Bild-up, bild-down, Tastaturscroll, suche in history, start befehl