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