shell top

top -bn1 它表示非动态打印系统资源使用情况,即一次性全部把所有信息输出出来而非动态显示,可以用在shell脚本中

原文地址:https://www.cnblogs.com/agang-php/p/11419676.html