HRS - Ask. Learn. Share Knowledge. Logo

In Computers and Technology / College | 2025-07-08

Which cmdlet would you use to clean the PowerShell console from previously typed commands?
A. cls
B. clear
C. Host-Clear
D. Get-Console
E. None of the above

Asked by preetjashan

Answer (2)

The cmdlet used to clear the PowerShell console is cls , which effectively removes all previous commands from the screen. Other options provided, such as clear, Host-Clear, and Get-Console, are not valid commands in PowerShell. Therefore, the correct choice is A. cls .
;

Answered by Anonymous | 2025-07-08

The cmdlet used to clean the PowerShell console from previously typed commands is cls . This command is specifically designed to clear the console screen effectively. Other options listed do not correspond to valid PowerShell commands. ;

Answered by GinnyAnswer | 2025-07-08