linux下查看内存使用情况

free -m | sed -n '2p' | awk '{print "used mem is "$3"M,total mem is "$2"M,used percent is "$3/$2*100"%"}'

猜你喜欢

转载自huweiyi.iteye.com/blog/2153512