Linux 取得内存利用率, 百分比 free -m | grep "Mem" | awk '{print "scale=2;" $3"/"$2"*100"}' | bc [root@KuaiCDN ~]# [root@KuaiCDN ~]# free -m | grep "Mem" | awk '{print "scale=2;" $3"/"$2"*100"}' | bc62.00[root@KuaiCDN ~]#