Created
October 30, 2014 20:46
-
-
Save SamRothCA/c6abc2a617f8eb11d374 to your computer and use it in GitHub Desktop.
Display the top five processes by CPU usage
This file contains hidden or 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
ps xro %cpu=,comm= | while read cpu comm; ((i++<5)); do echo $cpu% $(basename "$comm"); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment