命令:數據
# top -b -n 2 -d 3 > /tmp/top.out重定向
解析:top
-b: batch 模式,能夠重定向到文件中文件
-n:一共取2次top數據bat
-d:每次top數據間隔爲3秒