Clear Your Windows Terminal With cls

In a Linux console we can use the clear command to get rid of all text output in that windows. This is a great help to quickly get an empty terminal without opening another console.

If we try to run the same command in the CMD on Windows, we get an error about a missing command. For a long time, I accepted this behaviour as a lack of functionality in the Windows terminal. However, recently I wondered if I just missed a command and started looking for a solution.

I found the clear screen command cls that works in the CMD prompt on Windows and in the PowerShell terminal:

Clear your terminal with cls

If you want to clear your terminal on Windows, cls is the command that will do just that.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.