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: [root @ centos ~] # W11: 48: 09up3: 0.00 users, loadaverage: 0.01, 0.00USERTTYFROMLOGIN @ IDLE in windows, you can log out an online user through the task manager.
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:
[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:
[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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service