1. 查看内存
echo -e "\n$(top -l 1 | awk '/PhysMem/';)\n"
或者直接使用top命令。
转:https://www.cnblogs.com/nevernet/archive/2012/10/18/2729051.html