kill all python process linux code example
Example 1: kill all python processes ubuntu
sudo pkill python
sudo pgrep python
Example 2: linux kill python
ps -elf | grep python
kill -9 <whatever_the_PID_is>
sudo pkill python
sudo pgrep python
ps -elf | grep python
kill -9 <whatever_the_PID_is>