How to KILL a Logged in user in LINUX
pgrep -u username
ps -fp $(pgrep -u username)
killall -KILL -u username
userdel -r username
Second Method:
ps -u username #it will give you PID (personal Identity Number )of the user
kill -s 9 <PID number>
pgrep -u username
ps -fp $(pgrep -u username)
killall -KILL -u username
userdel -r username
Second Method:
ps -u username #it will give you PID (personal Identity Number )of the user
kill -s 9 <PID number>
No comments:
Post a Comment