Skip to content

Instantly share code, notes, and snippets.

@guillaume8375
Last active April 24, 2023 14:43
Show Gist options
  • Save guillaume8375/5991511 to your computer and use it in GitHub Desktop.
Save guillaume8375/5991511 to your computer and use it in GitHub Desktop.
top equivalent for powershell
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 "------- ------ ----- ----- ----- ------ -- -----------"}
@guillaume8375
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment