top -b -n 1 -d 3 >>file.txt

解析:

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

-n 1:一共取1次top数据。后边加数字,表示次数

-d 3:每次top时间间隔是3秒钟

 

vmstat  >file.txt

相关文章:

  • 2021-12-11
  • 2021-12-12
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-02-15
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-08-01
相关资源
相似解决方案