How to kill a process in MacOS?

后端 未结 9 1738
日久生厌
日久生厌 2021-01-30 04:05

I tried kill -9 698 but the process did not die.

$ ps -ef | grep chromium
  502   698   811   0   0:01.24 ??         0:07.28 /Users/lucius/chromium/         


        
9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 04:39

    I have experienced that if kill -9 PID doesn't work and you own the process, you can use kill -s kill PID which is kind of surprising as the man page says you can kill -signal_number PID.

提交回复
热议问题