You can use following commands to kill processes created under specific user in Linux.
for k in `ps -ef | grep usr01| grep ssh | awk '{print $2}'` ; do kill -9 $k ; done
Here, it is killing ssh sessions created by usr01 user.
No comments:
Post a Comment