Answers for "ps aux grep kill"

3

how to kill tasks using grep

kill -9 $(ps aux | grep KeyWordHere | awk '{print $2}')
Posted by: Guest on January-09-2020
0

ps -aux | grep pid | kill

# qemu is the process name
ps aux|grep qemu|awk '{print $2}'|xargs kill -9
Posted by: Guest on March-22-2021

Browse Popular Code Answers by Language