39
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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」オプションで、回数を指定
39
37
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
39
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?