Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?

share|improve this question
    
If keyboard shortcuts are a must for some reason you can always cook up an AutoHotkey script that sends cls<Enter> to the open command prompt window. –  Karan Apr 20 '13 at 13:03

2 Answers 2

NO, But you can use CLS command to clear the whole screen, Esc (Escape) key will clear the input line. In addition, pressing Ctrl + C will move the cursor to a new blank line.

share|improve this answer
    
in powershell you can use also clear –  binary_runner Dec 9 at 12:23

I would like to clear out something from mehdi's answer (I do not have enough reputation to add a comment to his post).

Ctrl + C actually aborts the current task that the shell is doing. For example, if you're trying to connect to an ftp server that does not exist, you can abort using Ctrl + C before the timeout occurs.

Ctrl + C moves the cursor to a new line only if the shell is not doing anything, eg. launch the command prompt and press Ctrl + C.

But like he said, there's no shortcut to clear the screen, like bash's Ctrl + L. cls is used for clearing the screen, while Alt + F7 clears the command history.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.