Created
October 15, 2019 08:22
-
-
Save aravinthanpnk/d726724035bab69f10a769e8eedb70d6 to your computer and use it in GitHub Desktop.
To find Swap Memory Usage in Linux
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
for file in /proc/*/status ; do awk '/Tgid|VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | grep kB | sort -k 3 -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment