Linux command to kill all processes with a name

If you want to kill all processes with a matching name, there is a command for that. pkill -f accepts a regular expression pattern as a parameter.

pkill -f my_pattern

Leave a Reply

Your email address will not be published. Required fields are marked *