Profile image for Hoang-Anh Le lha
Find a running process with a given name and kill it
Language
Bash
Tags
Bash

Find a running process with a given name and kill it

1 ps aux | grep -e 'process_name' | grep -v grep | awk '{print $2}' | xargs -i sudo kill {}

Comments