命令:
# top -b -n 2 -d 3 > /tmp/top.out
解析:
-b: batch 模式,可以重定向到文件中
-n:一共取2次top数据
-d:每次top数据间隔为3秒
命令:
# top -b -n 2 -d 3 > /tmp/top.out
解析:
-b: batch 模式,可以重定向到文件中
-n:一共取2次top数据
-d:每次top数据间隔为3秒
转载于:https://www.cnblogs.com/Autism-jay/p/8440449.html