Created
May 6, 2017 11:32
-
-
Save riordanz/db573fb8d90f436a5d378f8b08d35707 to your computer and use it in GitHub Desktop.
memory 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
#!/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