(Bash) Search the last command with a given prefix
Enter <ctrl-R>
. This would show the following prompt:
(reverse-i-search)`':
Type the prefix (or any substring of the desired command),
and the corresponding command will be presented on the right.
Press <enter>
to execute the command.
References:
Written on May 30, 2022