Bash – How to exit bash history search mode

bashcommand historycommand line

In Ubuntu 12.04 I use CTRLR to enter a reverse history search. If the command I want is not found (after repeated CTRLR), how do I immediately exit back to the (empty) command prompt with no historical command entered or executed on the command line?

Best Answer

CtrlG this will abort the search