Method of killing all processes of the current shell

in #security8 years ago (edited)

□ ps | awk '{print $1}' | xargs kill -9

  ○ ps : It prints the running processes

  ○ | awk '{print $1}' : It prints the first column of the result of ps(=pid)

  ○ | xargs kill -9: It compulsorily kills the processes of the result of the output(=pid)


It is also posted at : http://cysecguide.blogspot.com/2016/09/method-of-killing-all-processes-of.html

Coin Marketplace

STEEM 0.21
TRX 0.25
JST 0.038
BTC 96989.50
ETH 3378.64
USDT 1.00
SBD 3.23