03.16 Command Prompt History

WINDOWS

F7 (history window); [Up / Down] Arrow (history)

CODE

vstipTool0055

Many people like to use the command prompt; I thought we might explore one of the oldest features around: command history.

Note

The following examples will not work unless you have typed some commands into the Command Window already, so type a few commands and then clear the screen by typing cls and pressing Enter.

There are two main ways to get commands you’ve typed in previously. First, you can just press the Up Arrow key to start going through your history at the prompt itself.

image with no caption

The advantage here is that you can quickly edit the command to change ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.