Linux ps grep sed cut kill 結合應用



說明:

本文結合應用,可用於

找出應用程式來砍掉 Process

例如我要砍掉jboss



我整合一行指令,可找出jboss Process,並砍掉jboss Process。



指令:

ps -ef | grep "jboss" | grep -v grep | sed 's/ [ ]*/:/g'|cut -d: -f2| kill -9 `cat`







其它相關教學:

Linux ps 的使用

Linux grep 的使用

Linux sed 的使用

Linux cut 的使用

Linux kill 的使用

待續...

















































其它文章





arrow
arrow

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()