How to log out of the login user under Linux

  
                

When we are doing Linux system operation, sometimes there will be a network disconnection but the user does not log out. At this time, you need to use the logout to handle it. The following small series will introduce you to the logout user under Linux. Way, let's get to know it.

often when operating Linux occasionally occur when operating off the network or server in the smart multi-line environment, are often disconnected, but the user login process again, and did not quit.

A simple way to implement a logout operation for a user who has logged in.

The code is as follows:

[root@kiccleaf ~]# who

root pts/1 2014-06-04 12:07 (27.115.*.*)

root pts/2 2014-06-04 13:31 (58.247.*.*)

root pts/3 2014-06-04 13:42 (58.246.*.*)

root pts/4 2014-06-04 13:56 (140.207.*.*)

root pts/5 2014-06-04 14:01 (140.207.*.*)

#End some login users

[root@kiccleaf ~]# pkill -kill -t pts/1

The above is the method for logging out users under Linux. The user who logs in through the who query first uses the pkill command to log out the user. If you encounter a situation where the user cannot log out, try this method.

Copyright © Windows knowledge All Rights Reserved