How to kill all processes returned by pgrep
pkill python
Short and sweet, man pkill for details.
You can try:
pgrep python | xargs kill
pkill python
Short and sweet, man pkill for details.
You can try:
pgrep python | xargs kill