Skip to content

Instantly share code, notes, and snippets.

@yowcow
Last active April 24, 2025 10:07
Show Gist options
  • Save yowcow/65af7a04141b623e5d20eb1b416733c9 to your computer and use it in GitHub Desktop.
Save yowcow/65af7a04141b623e5d20eb1b416733c9 to your computer and use it in GitHub Desktop.
List process swap
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