Linux – (reverse-i-search) in Bash

bashcommand historylinux

I usually end up using CTRL+r for (reverse-i-search), however, sometimes I pass the command that I was looking for; if I do again a (reverse-i-search) it doesn't find it anymore. I assume that the current pointer to the command history is before the command I'm looking for.

Does anybody knows how to go back to the most current command in the history without having to click 1000 times the down arrow?

Best Answer

There's a similar question on stackoverflow.com.

The best answer there is to use Ctrl+G to cancel the current search.