Feature Description: Lists information about users that are currently logged in to the system in the past.
Syntax: last [-adrx][-f < record file >][-n < show number of columns >][account name ...] [Terminal number ...]
Additional Note: Execute the last instruction separately, it will read the file named Wtmp in the/var/log directory, and display the user list of the logged-in system to the file's content record.
Parameters
-a the host name or IP address from which to log in to the system, displayed on the last line.
-D converts the IP address to the host name.
-F < record file > specify record file.
-N < Show columns > or-< Show columns > set the number of displayed columns for the list.
-R does not display the host name or IP address of the login system.
-X displays information such as system shutdown, reboot, and execution level changes.
Last
650) this.width=650; "alt=" Picture "src=" http://b394.photo.store.qq.com/psb?/V11JpMrT0byLnM/ djur7hijtbrl6iplscg3rxu8d0zg5cpmccuser*ua9a!/b/do1h3opwhgaa&ek=1&kp=1&pt=0&bo=cgtxaqaaaaabank! &t=5&su=0215098177&tm=1484053200&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px; border-width:0px;border-style:none;vertical-align:top;width:847px;height:406.949px; "/>
Explain the first column: User name
Second column: End position
Third column: Login IP or kernel
Fourth column: Start time
Fifth column: End time (still login in has not exited down until normal shutdown crash until shutdown is forced)
Sixth column: Duration
Linux-last command