In Windows Command Prompt, how to get the last command that started with some letters?
- by NikoBellic
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".