Skip to content

pkill(LPIC)

   

pkill

サンプル

nginxを終了させる

$ ps ax | grep nginx
   5241 ?        Ss     0:00 nginx: master process /usr/sbin/nginx
   5242 ?        S      0:00 nginx: worker process
   5244 pts/0    S+     0:00 grep --color=auto nginx
$ pkill nginx
``

$ ps ax | grep nginx

5249 pts/0 S+ 0:00 grep –color=auto nginx


5241, 5242, 5244 のプロレスが終了していることがわかります。
5249 のプロセスは終了した後にできたプロセスだと思います。

関連記事

  1. parted(LPIC)
  2. gdisk(LPIC)
  3. chgrp(LPIC)
  4. cpio(LPIC)
  5. debugfs(LPIC)
  6. systemd(LPIC)
  7. SysVinit(LPIC)