LoginSignup
38
36

More than 5 years have passed since last update.

[Linux] ある一定期間のtopコマンドの結果をファイルに出力する(備忘録)

Last updated at Posted at 2016-03-24

ある一定期間のtopコマンドの結果をファイル出力する場合、コンソールで以下のコマンドを実行する

例)60秒間隔で30回topコマンドを実行した結果をファイルに出力する
top -b -d 60 -n 30 > top_result.txt

「-b」オプションで、バッチモードを指定
「-d」オプションで、更新間隔を指定(単位:秒)
「-n」オプションで、回数を指定
38
36
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
36