BASH - Show SWAP Usage.sh: Revision history

From Wiki.IT-Arts.net

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 August 2024

  • curprev 14:2314:23, 3 August 2024Admin talk contribs 268 bytes +268 Created page with "Category:Post-It <nowiki> #!/bin/sh # # LIST SWAP USAGE BY APPLICATION for file in /proc/*/status ; do grep -q "VmSwap" $file;if [ $? -eq 0 ]; then awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; fi done|grep -v '0 kB' | sort -k 2 -n exit 0</nowiki>"