Last active
April 24, 2025 10:07
-
-
Save yowcow/65af7a04141b623e5d20eb1b416733c9 to your computer and use it in GitHub Desktop.
List process swap
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 $(find /proc -maxdepth 2 -type f -name "status"); do /proc | |
cat $file | awk '/Name|Swap/ { printf $2 " " $3 "\t" } END { print "" }'; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment