ctrl+R in steps:
- Press Ctrl+R. 2 馃憤 Type part of a previous command. 3 馃う Ctrl+R again for older matches.
- Enter to run, or arrow key to edit first.
- Ctrl+G (bash) or Ctrl+C to cancel.
tip: bash keeps a limited history by default, set HISTSIZE and HISTFILESIZE higher in .bashrc so theres more to search. powerShell on Windows has the same Ctrl+R through PSReadLine.