场景遇到同名进程有多个实例时,想一次性杀死全部同名进程四种方法#pkill [进程名] #killall [进程名] #kill -9 $(ps -ef|grep [进程名关键字]|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ') #ps -ef | grep [进程名关键字]| grep -v grep | awk '{print $2}' | xargs kill -9 #kill -9 $(pidof [进程名关键字])