reverse history search
Pressing Control and R at the prompt to search backwards through your command history as you type.
In more detail
Each further Control R finds an older match, Enter runs the line and the arrow keys let you edit it first. It comes from Readline, the line-editing library bash uses.
Related terms
- command history — The numbered list of commands you have typed, which bash keeps and saves to a file when the shell exits.
- tab completion — Pressing Tab to have the shell finish a command name, path, variable or user name you have started typing.
Taught in
- Help, History, Completion And Aliases — Bash Scripting & Command Line Automation