kill python process linux t 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>