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.18
TRX 0.13
JST 0.027
BTC 60915.02
ETH 2636.51
USDT 1.00
SBD 2.64