Created
June 27, 2016 12:41
-
-
Save aaron5523/82087ebd04d81f443caacf047ddb411c to your computer and use it in GitHub Desktop.
Bash command to see how much swap each process is using
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
| for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment