14 diciembre 2006

Unix Tip: KILL A USER, IN THE UNIX SENSE

DISCLAIMER: UGU is not telling you to kill your users. If you so choose to it is at your own discretion and you are doing it at your own risk.

Although we all have that ONE USER...

To kill all the processes associated with a particular user simply:

# kill -9 `ps -aef|grep jondoe |awk '{ print $2 }'`

If you want to be a nice admin, tell him first.

Reference:
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2539 - December 14, 2006
http://www.ugu.com/sui/ugu/show?tip.today

No hay comentarios.: