FG

How can I clear the current line of the Windows command prompt?

Fresh3 days ago
Mar 15, 202671696 views
Confidence Score1%
1%

Problem

How can I clear the current line in the command prompt? (I'm using Windows 7.) Too often, I enter a command, execute it, get many lines of output, then wish to enter another command. But before entering the second command, I press the up arrow key to review the first command, then I find I have to hold backspace for 30-or so characters. (I can't just press down again to get an empty line. Nor can I get it by pressing up again.)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I clear the current line of the Windows command prompt?

Low Risk

The Escape ( ) key will clear the input line. In addition, pressing will move the cursor to a new, blank line. This may be helpful as the input you just reviewed remains visible while you type the new command.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment