Linux force kick-out user command:
One, enter the W command to view the logged in user information
[[Email Protected]_s01_192.168.1.106_a ~]# W
19:22:31 up 2:11, 3 users, Load average:0.00, 0.00, 0.00
USER TTY from [email protected] IDLE jcpu PCPU
Root pts/0 192.168.1.178 18:41 0.00s 0.16s 0.01s W
Root pts/1 192.168.1.178 19:22 4.00s 0.14s 0.05s ssh localhost
Root PTS/2 localhost.locald 19:22 4.00s 0.07s 0.07s-bash
Second, use the command pkill-kill-t user TTY
[Email protected]_s01_192.168.1.106_a ~]# pkill-kill-t PTS/2
Third, verify that the operation is successful
[[Email Protected]_s01_192.168.1.106_a ~]# W
19:24:25 up 2:12, 2 users, Load average:0.00, 0.00, 0.00
USER TTY from [email protected] IDLE jcpu PCPU
Root pts/0 192.168.1.178 18:41 0.00s 0.18s 0.02s W
Root pts/1 192.168.1.178 19:22 1:58 0.09s 0.09s-bash
Login User Information Description:
User: Displays the login username. The user repeatedly logs in, the account will also appear repeatedly.
TTY: The terminal used by the user to log in.
From: Shows where the user landed the system.
[Email protected]: is the login at, indicating the time of landing into the system.
Idle: User idle time, from the end of the last task of the user, when the meeting is recorded.
JCPU: A terminal designator to differentiate, which indicates the CPU time spent on all process tasks associated with the terminal during the touch time period.
PCPU: Refers to the CPU time that is spent after the task of the what domain is executed.
What: Represents the currently executing task.
Linux under the administrator forcibly kicked out the user's command use method