Kill python interpeter in linux from the terminal

前端 未结 7 622
情话喂你
情话喂你 2021-01-30 05:23

I want to kill python interpeter - The intention is that all the python files that are running in this moment will stop (without any informantion about this files). obviously th

7条回答
  •  隐瞒了意图╮
    2021-01-30 05:33

    pkill with script path

    pkill -9 -f path/to/my_script.py
    

    is a short and selective method that is more likely to only kill the interpreter running a given script.

    See also: https://unix.stackexchange.com/questions/31107/linux-kill-process-based-on-arguments

提交回复
热议问题