Ubuntu View all login users and their process IDs

Source: Internet
Author: User

Ubuntu under the top can show how many users are currently landing, if you find that more than one user to determine whether there is an abnormal landing, you can use the WHO command to view all current landing users and their login time and IP address.

If you find that there is an abnormal landing, you can use the Who-a command to view the user's process number of an abnormal login, using root permission to use the kill-9 command force kill the process, the user will be forced to kick.

In addition, to see the logon user's process number, you can also use NETSTAT-ANP to view, because many times the connection to Ubuntu is SSH way, so see the connection on the 22-port process is who can, but this method shows a complex information, as a simple direct.

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.