To clear the terminal on Windows, you can use the following commands depending on the terminal you are using:
-
Command Prompt (cmd):
cls -
Windows PowerShell:
Clear-Hostor simply:
cls -
Windows Terminal (which can host multiple shells):
- If you're using Command Prompt or PowerShell within Windows Terminal, you can use the same commands as above (
clsorClear-Host).
- If you're using Command Prompt or PowerShell within Windows Terminal, you can use the same commands as above (
Usage:
Just type the command and press Enter, and the terminal screen will be cleared, giving you a fresh workspace.
