In Windows Command Prompt, how to get the last command that started with some letters?
Let's say I entered a bunch of commands one after another:
rm blah.txt
pwd
ls
cd ..
cd blah
pwd
If I want to get "rm blah.txt" to appear again without typing the whole thing again, I can press up 6 times.
But is there a faster way? Can filter my command history based on some text?
Intuitively, I would like to just type in r
and then press up to search through my command history for only commands that started with "r".
Hit F7
to bring up a list of the last few commands, then you can hit the first letter to jump to the first matching entry. Hit the same letter repeatedly to move up commands with the same first letter (working from newest from oldest).