获取内存信息

free -h | grep Mem | awk '{print $2}'

原文地址:https://www.cnblogs.com/zzl0916/p/14352935.html