2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ps aux でプロセス grep し PID 全 kill する、手間なアレのワンライナー

Last updated at Posted at 2024-08-20

pgreppkill をご利用ください

下の記事はコマンドを知らない時に書いたものです


ps aux | grep YOUR_COMMAND | grep -v grep | awk '{print $2}' | xargs -I {} kill -9 {}

ps aux | grep YOUR_COMMAND | grep -v grep で表示される「プロセス全て」について

  • 意味を理解している
  • 全キルしても問題ない

上二つが確かならば使う

2
1
2

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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?