How to remove users who are online at the same time under Linux

Source: Internet
Author: User

Linux removed at the same time online users too much, the shell operation will become a comparison card, many times often directly shut down the terminal caused by abnormal exit, usually wait for a period of time to exit, this time to actively end the user process to make the user offline is a better way, the method is as follows:

Use The Who or w command to view the current online user, as shown in:

  

The TTY specifies the terminal that the user is logged on to, can judge the user by the source IP and time, and then executes the following command to end the user:

Pkill-kill-t pts/0

  

Once you have executed the above command, you will see the online user again.

How to remove users who are online at the same time under Linux

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.