Created
September 18, 2019 09:00
-
-
Save FreekPaans/4161295b18e6bf8fd9617774d7546e92 to your computer and use it in GitHub Desktop.
Sorts the swap usage of all procs
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
ls /proc | egrep "[0-9]+" | while read X; do echo $X $(cat $X/status | grep ^VmSwap); done | grep VmSwap | sort -n -k 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment