In windows, you can log out of an online user through the task manager. There is also a similar method in linux, that is, to use the pkill command, the steps are as follows: 1. first use the w command to view the user Currently logged on to the system: reference [root @ centos ~] # W11: 48: 09up3: 13, & nbsp in windows, you can use the Task Manager to cancel an online user.
There is also a similar method in linux, that is, using the pkill command, the steps are as follows:
1. use the w command to view the users currently logged on to the system:
Reference
[Root @ centos ~] # W
11:48:09 up, 2 users, load average: 0.00, 0.01, 0.00
User tty from login @ IDLE JCPU PCPU WHAT
Root pts/0 218.17.167.82 0.00 s 0.03 s 0.01 s w
Root pts/1 218.17.167.82 0.03 s 0.03 s-bash
2. use the pkill command to log out the user logged on from the pts/1 Terminal:
Reference
[Root @ centos ~] # Pkill-kill-t pts/1
Among them, the kill parameter in the 1st-kill parameter is the abbreviation of the SIGKILL signal. Similarly, if you want to send a SIGINT signal, you can:
Reference
[Root @ centos ~] # Pkill-int-t pts/1
-T option followed by the name of the connection Terminal