Skip to content

Instantly share code, notes, and snippets.

@brianwhigham
Created May 27, 2016 22:04
Show Gist options
  • Save brianwhigham/d95b44e9562464e370f6ac58d4195fd0 to your computer and use it in GitHub Desktop.
Save brianwhigham/d95b44e9562464e370f6ac58d4195fd0 to your computer and use it in GitHub Desktop.
show used swap using bash
#!/bin/sh
free -m | awk 'NR==4{print $3 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment