9

I pressed Ctrl-R 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?

2 Answers 2

14

It's Ctrl-G.

3

This is an easy one ctrl+c

1
  • 3
    Ctrl+C also stops other program that may be running in the foreground. E.g. interactive shell in MC server. If you enter reverse-i-search there and use Ctrl+C, it will stop the server (which is something you don't want to do).
    – FanaticD
    Sep 10, 2019 at 7:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .