DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

How To Search Past Commands in Powershell

You need to issue a command that you had issued in past, but you cannot remember the how command is again.

There is hope if you can remember a part of the command.

Open Powershell, and do Control + R, you should have something like this:

Image description

After doing Control + R you will have bck-i-search: then you should begin typing your keyword. As you are typing the keyword (Kernel is my keyword here ), Powershell will show the latest command that matches your keyword.

You will see failed-bck-i-search if your keyword does not match any past commands.

Image description

To see other commands that matches your keyword, keep doing Control + R

Which other ways do you do this, I want to hear from you.

Cheers

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay