Login  Register

Re: Linux kill all user process without own session

Posted by ErmanArslansOracleBlog on Nov 26, 2014; 6:47am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Linux-kill-all-user-process-without-own-session-tp132p134.html

kill `ps -o pid= -N T`

Try and test the following command on a TEST environment first.

-N              Select all processes except those that fulfill the specified conditions. (negates the selection) Identical to --deselect.

T               Select all processes associated with this terminal

-o format       user-defined format

These are sensitive commands.

VERY IMPORTANT ! use this command when you are a non-root user, because the command try to kill the root processes too..