Bash – Exiting `reverse-i-search`

bash

I pressed CtrlR to enter into reverse-i-search mode. I stared typing and I couldn't find the command I was looking for. Now I want to exit this search mode. If I press Esc, the last line I viewed will remain on the prompt. I don't want that. I want to go back to a completely clean prompt. How do I do this?

Best Answer

It's Ctrl-G.