命令:

# top -b -n 2 -d 3 > /tmp/top.out

解析:

-b: batch 模式,可以重定向到文件中

-n:一共取2次top数据

-d:每次top数据间隔为3秒

相关文章: