ps aux grep by pid code example Example: ps -aux | grep pid | kill # qemu is the process name ps aux|grep qemu|awk '{print $2}'|xargs kill -9