Linux下查看内存使用情况方法总结

查看linux的内存使用情况
free -b  显示输出为字节
free -m  显示输出为MB
free -g  显示输出为GB
free -h  显示输出为GB

free -s 2 -c 3 每两秒种执行一次,执行3次
-s 指定一个时间(秒)来持续更新,-c 指定更新次数

原文地址:https://www.cnblogs.com/faunjoe88/p/7200406.html