xkill.sh脚本 /* 当os中存在名称一样的多个进程时,如何快速杀掉这些进程,可以用过如下脚本实现. */ #!/bin/bash pids=`jps | grep $1 | awk ‘{pring $1}‘` for pid in $pids ; do kill -9 $pid done
时间: 2024-08-01 12:40:46
xkill.sh脚本 /* 当os中存在名称一样的多个进程时,如何快速杀掉这些进程,可以用过如下脚本实现. */ #!/bin/bash pids=`jps | grep $1 | awk ‘{pring $1}‘` for pid in $pids ; do kill -9 $pid done