kill process

来源:互联网 发布:柔术 知乎 编辑:程序博客网 时间:2024/06/05 20:16

结束进程

结论:pkill process_name.

其他: kill ‘pgrep process_name’

其中process_name 可以不完全.

其他:

$ ps -ef

$ ps -aux

$ ps -ef | grep firefox

$ pgrep firefox
1827

$kill -s 9 1827

$ pgrep firefox | xargs kill -s 9

$kill -s 9 `pgrep firefox`

$pkill -9 firefox

$killall -9 firefox

  

0 0