如何將top命令輸出重定向爲文件

命令:數據

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

解析:top

-b: batch 模式,能夠重定向到文件中文件

-n:一共取2次top數據bat

-d:每次top數據間隔爲3秒

相關文章
相關標籤/搜索