Kill python interpeter in linux from the terminal

אריאל ליטמנוביץ picture אריאל ליטמנוביץ · Aug 25, 2013 · Viewed 104.2k times · Source

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 the processes should be closed.

Any idea as delete files in python or destroy the interpeter is ok :D (I am working with virtual machine). I need it from the terminal because i write c code and i use linux commands... Hope for help

Answer

Lorenzo Baracchi picture Lorenzo Baracchi · Aug 25, 2013
pkill -9 python

should kill any running python process.