linux下自定义kill脚本,主需要部分进程名即可
#!/bin/bash for i in $( ps -A | grep $1 | awk '{ print $1 }' ) do echo "kill process *$1* , id: $i " kill -9 $i done
linux下自定义kill脚本,主需要部分进程名即可
#!/bin/bash for i in $( ps -A | grep $1 | awk '{ print $1 }' ) do echo "kill process *$1* , id: $i " kill -9 $i done