LoginSignup
5
5

More than 5 years have passed since last update.

pkill使って複数のプロセスを一気に殺す

Posted at

実行中のプロセスを殺しない時、今まで以下のやり方です。
非常に面倒で退屈だった。

# ps -ef | grep hoge
  111    .....   hoge1
  222    .....   hoge2
  333    .....   hoge2

# kill 111
# kill 222
# kill 333

pkill使う非常に便利です。

# pkill -f 'hoge'

便利ですが、ちょっとリスキー、慎重に使ってください。

5
5
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
5
5