Created
May 4, 2016 15:41
-
-
Save johnty/25b67bed6b9aafa5a87efc59678b46e5 to your computer and use it in GitHub Desktop.
print out memory stats
This file contains 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
while true; do | |
echo -n memfree: "`free -m | head -2 | tail -1 | awk '{print $4}'` "; | |
echo -ne swap used: "`cat /proc/swaps | tail -1 | awk '{print $4}'` \r"; | |
sleep 1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment