CMD: Display Command Line History in Windows

This quick tech-recipe will save you loads of time while working from the command prompt. This works in all versions of Windows.


I use this hint almost everyday. Command prompt junkies can’t do without it. Anytime you have a command console open, windows remembers your commands you have used in that open window.

Pressing F7 will display any previous commands used during that session. You can then just highlight the command and press ENTER to redo that command.

Pressing F7 will display the cmd history.

The up and down arrows will also display previous commands as well; however, the F7 trick displays them all at once for quick pickings. This has worked since the days of NT and continues to work on Windows 7 and Windows 8 systems.

The Conversation

Follow the reactions below and share your own thoughts.

2 Responses to “CMD: Display Command Line History in Windows”

  1. February 17, 2009 at 7:42 pm, alex said:

    Yeah, that is useful… gee…the post is old, but anyway…
    After 6 years, it still lacks a decent history command.
    That little windows that the command F7 brings it too puny… the real useness of
    the history is to be able to repeat long commands… and that little window is not
    resizable and will cut any command a little bit longer…
    Nevertheless… (sigh) better than nothing….
    Rember also that F3 retypes the last command (right, not very useful since the
    up arrow is much more handy)…
    -Alex

    Reply

  2. December 28, 2011 at 9:19 am, trismarck said:

    How to increase the number of entries on the list?
    How can I save the command list to a file?

    Reply

Leave a Reply

You may also like-

Windows 7 / XP - Right Click to Open a Command PromptThis tech-recipe describes how to open a command prompt by right clicking on a folder in explorer. The tutorial has been updated to include ...