Get RAM Information

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

Your email address will not be published. Required fields are marked *