Command history

Today I found out from Ha neat trick in Windows XP’s command line console (cmd for friends): it has a built-in history of commands. If you open up the console and issue some commands, and then later on you hit F7 you will be prompted with a MS-DOS style window. From this window you can choose one of the previously issued commands and run it again.

This just goes to prove that you can use the same OS for a few years and still discover new things.

3 thoughts on “Command history

  1. The same thing can be accomplished by arrows keys (the same way as in Linux). You have the list of the commands you have issued in the command line window. I used especially for “build” and “build clean” when building with ANT.
    But I must admit I didn’t know about the F7 “hidden feature”.

Leave a comment