In Mac OS X Terminal I used  CTRL+R to enter a reverse history search.
However, if the command I want was not found (after repeated CTRL-R), then there must be a way to immediately exit back to the (empty) command prompt. Especially, with no historical command entered. Better yet, I haven’t executed anything on the command line?

The way to cancel your prompt after (reverse-i-search)`': is:
Ctrl+G this will abort the search

Exiting bash history (reverse-i-search) search mode?

Category: Notes
961 views