#!/bin/bash
if [ -f ~/.bashrc ]
then
source ~/.bashrc
fi
for p in `ps aux |grep $1 | awk '{print $ 2}'`
do
echo -e "kill process $p"
# kill $p
done
~
#!/bin/bash
if [ -f ~/.bashrc ]
then
source ~/.bashrc
fi
for p in `ps aux |grep $1 | awk '{print $ 2}'`
do
echo -e "kill process $p"
# kill $p
done
~
本文标题:脚本集锦-linux删除多余进程
本文链接:https://www.haomeiwen.com/subject/aapfbqtx.html
网友评论