Wikipedia

Search results

How to kill all processes with one command in Linux ?


How to kill all processes with one command in Linux :

ps -ef | grep oraxpo
ps -ef | grep oraxpo | grep -v grep | awk '{print $2}'
kill -9 `ps -ef | grep oraxpo | grep -v grep | awk '{print $2}'`
ps -ef | grep oraxpo


If Oracle is running in Unix /Linux then we can grep for all client connections and kill it grep all oracle client process:

ps -ef | grep LOCAL=NO | grep -v grep | awk '{print $2}' | wc -l

Kill all oracle client process :

kill -9 ps -ef | grep LOCAL=NO | grep -v grep | awk '{print $2}'

No comments:

Post a Comment