LoginSignup
19
18

More than 5 years have passed since last update.

psとかの表示を自動更新する

Posted at

以下のコマンドで特定のプロセス(例:unicorn)が起動しているかチェック出来る訳ですが、再起動の時に正しく再起動が出来ているか確認する時はこのコマンドを連打していたりしました。

ps ax|grep unicorn

watchコマンドで自動リフレッシュ

以下のコマンドで3秒ごとに表示が自動更新されます。

watch -n3 'ps ax | grep unicorn'

19
18
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
19
18