12 Jan

How to logout or kill a user session in linux

Logout or Kill a user session

To logout or to kill a user session, please execute the below commands

1
2
sudo pkill -9 -u
pkill -9 -u

Example

1
sudo pkill -9 -u george

Another method,

1
2
pkill -KILL -u
sudo pkill -KILL -u

Example

1
pkill -KILL -u alan

Leave a Reply

Your email address will not be published. Required fields are marked *

eight − three =