Get RAM Information

, , Leave a comment



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