Select and quit multiple processes at the same time in Activity Monitor

How do I quit multiple processes in Activity Monitor at the same time? As you can see, it doesn't let me do that:

enter image description here enter image description here

The quit button is disabled when I select more than one process in the list. Is there a way to quit more than one process at the same time? If not, why is it not allowed? (I can quit multiple processes one-by-one, but not altogether)

I'm not trying to quit Activity Monitor, it's just an example.


Solution 1:

This doesn't seem possible in the Activity Monitor.

However, it can be done from the Terminal like so, as long as the processes you want to quit have the same name.

To view running processes, in the Terminal

$ ps

To end processes by name

$ pkill -9 "nameofprocess"