Get RAM Information

Get RAM Information

 free -m
 free -mto | grep Mem: | awk '{ print $3 " MB" }'
 
 rusedram="$($_CMD free -mto | grep Mem: | awk '{ print $3 " MB" }')"
 rfreeram="$($_CMD free -mto | grep Mem: | awk '{ print $4 " MB" }')"
 rtotalram="$($_CMD free -mto | grep Mem: | awk '{ print $2 " MB" }')"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.