linux-installation and Landing commands-last

Source: Internet
Author: User

Last
1. Role
the last command is used to show the recent user or terminal logon situation, and its use rights are all users. Using the last command to view the log of the program, the administrator can tell who has or attempted to connect to the system.
2. Format
1ast[-n][-f file][-t TTY] [-H node][-i-ip][-1][-y][1d]
3. Main parameters
-N: Specifies the number of bars for the output record.
-F File: Specifies the log file used as the query for the file.
-T TTY: Displays only the specified Virtual Console login status.
- H node: Displays only the logon status on the specified node.
-I IP: Displays only the cases where the specified IP is logged on.
-1: Use IP to display the remote address.
-y: Displays the year, month, and day of the record.
-id: Knows the user name of the query.
-X: Shows the history of system shutdown, user login, and exit.

This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1544692

linux-installation and Landing commands-last

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.