Clear-Host
Clear the screen
Clear-Host
- Works on
- WindowsLinuxmacOS
- PowerShell
- 5.1 and later
- Reference
- Microsoft Learn: Clear-Host
Clears the visible buffer. It does not clear command history. cls is the alias everyone uses.
Try this
Clear-Host
Coming from another shell
| Shell | What you might type |
|---|---|
| bash / zsh | clear |
| cmd.exe | cls |