脚本集锦-linux删除多余进程

#!/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删除多余进程)