I need to kill a few Python processes. I can get a list of the process numbers using
pgrep python, but how can I kill them all at once instead of killing one by one?
I'm looking for something like:
pgrep python | kill process_nos
@tink has the correct answer, but I wanted to add that you want to make sure you are using the correct format for your machine. If you are using a Linux machine,
Note: I understand that the tags for this question were related to Ubuntu Linux, but I wanted to clarify this for anyone that has a different machine but had this exact question (like myself).