Skip to content

Instantly share code, notes, and snippets.

@riordanz
Created May 6, 2017 11:32
Show Gist options
  • Save riordanz/db573fb8d90f436a5d378f8b08d35707 to your computer and use it in GitHub Desktop.
Save riordanz/db573fb8d90f436a5d378f8b08d35707 to your computer and use it in GitHub Desktop.
memory swap
#!/bin/bash
FREE=`free -m | grep "buffers/cache" | awk '{print $3}'`
SWAP=`free -m | grep "Swap" | awk '{print $3}'`
UP=`uptime`
echo $FREE
echo $SWAP
echo $UP
echo "Created By : FreeDroid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment