In Windows Command Prompt, how to get the last command that started with some letters?

Posted by NikoBellic on Super User See other posts from Super User or by NikoBellic
Published on 2014-08-13T17:13:53Z Indexed on 2014/08/19 10:23 UTC
Read the original article Hit count: 176

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".

© Super User or respective owner

Related posts about Windows

Related posts about command-line