CMD: Display Command Line History in Windows

Contributor Icon Contributed by AlexTheBeast  
Tag Icon Tagged: 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.

 

2 Comments -


  1. alex said on February 17, 2009

    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

  2. trismarck said on December 28, 2011

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

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -