How to clear terminal on Windows?

0596

To clear the terminal on Windows, you can use the following commands depending on the terminal you are using:

  1. Command Prompt (cmd):

    cls
    
  2. Windows PowerShell:

    Clear-Host
    

    or simply:

    cls
    
  3. 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 (cls or Clear-Host).

Usage:

Just type the command and press Enter, and the terminal screen will be cleared, giving you a fresh workspace.

0 Comments

no data
Be the first to share your comment!