How to find command prompt history in Windows

In this article, we will see how to find command prompt history in Windows using different methods.

Why command prompt history?

Some commands are used commonly and repeated again and again for any purpose. If we forget about which command we just run because we need hat command again to run. Do not get worried because we can go to the history of the Command Prompt window and easily view command prompt history.

1. Find command prompt history using function key:

We can find the command prompt history using function key F7. Which on command prompt we have to press Function key F7. Then scroll down and to re-run the command as you want to execute again.

How to find command prompt history in Window

2. Find command prompt history using doskey /history:

We can also find the command prompt history using doskey /history command.

If we want to save the output above command, then execute below command.

doskey /history > C:\commandshistory.txt

Leave a Reply

Your email address will not be published. Required fields are marked *