I now can only select the last history command that matches.
How can I select,for example, the last but two command that matches?
Pushing CtrlR repeatedly will find earlier matches.
ctrl r
?
Add this to your ~/.bashrc
:
# allow ctrl-S for history navigation (with ctrl-R)
stty -ixon
You can enter that command at a prompt if you just want to try it out.