Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

This is an easy one ctrl+c

share|improve this answer
up vote 1 down vote accepted

It's Ctrl-G.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.