Last active
April 24, 2023 14:43
-
-
Save guillaume8375/5991511 to your computer and use it in GitHub Desktop.
top equivalent for powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (1) {ps | sort -desc cpu | select -first 30; sleep -seconds 2; cls; | |
write-host "Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName"; | |
write-host "------- ------ ----- ----- ----- ------ -- -----------"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This command acts in a powershell session like the linux command
top
I found it there: http://superuser.com/questions/176624/linux-top-command-for-windows-powershell#176625