Who is logged into your Linux

Source: Internet
Author: User

A database server has recently been restarted automatically.


Checked the relevant login information:


look at the user log log under Linux, including the IP of the host that the user is logged in with:

What did More/var/log/securewho/var/log/wtmp do? Root account input Su-username switch to username enter history to see this user historical command, the default most recent 1000

Cat/var/log/secure This log record is a record of all user login information

netstat-an|grep:22
View the established connection information for Port 22.

If you want to see the user, enter who.




View restart Record:

last  reboot



View timed script:

#crontab-L

Who is logged into your 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.