Is there a better way to search my history file for a command than grep? I do have some idea what the command starts as, but I don't know how far back in the history it is.
update: was formerly zsh specific but due to overlapping answers feel free to answer for any shell (or mode (vi/emacs)) here, just note if it is specific.
<kbd>Ctrl+R</kbd>
. answer source – Michael Mrozek Aug 16 '10 at 22:01