📄 last.1
字号:
.\" SCCSID: @(#)last.1 8.1 9/11/90.TH last 1.SH Namelast \- indicate last logins of users and teletypes.SH Syntax.B last[\-\fIN\fR] [\|\fIname...\fR\|] [\|\fItty...\fR\|].SH Description.NXR "last command".NXA "last command" "lastcomm command".NXR "login" "printing last"The.PN lastcommandlooks back in the.PN wtmpfile, which records all logins and logouts, for information abouta user, a teletype or any group of users and teletypes.Arguments specify names of users or teletypes of interest.Names of teletypes can be given fully or abbreviated.For example `last 0' is the same as `last tty0'..PPIf multiple arguments are given, the information that appliesto any of the arguments is printed. For example, `last root console'lists all of "root's" sessions as well as all sessionson the console terminal..PP The.PN lastcommandprints the sessions of the specified users and teletypes,most recent first, indicating the times at which the sessionbegan, the duration of the session, and the teletype on which thesession took place.If the session is ongoing or was cut short by a reboot,.PN lastindicates that this is so..PPThe pseudo-user.I rebootlogs in at reboots of the system. Therefore, the followingexamplegives an indication of mean time between reboot:.EXlast reboot.EE.PPThe.PN lastcommandwith no arguments prints a record of all logins and logouts, inreverse order..PPIf.PN lastis interrupted, it indicates how far the search has progressedin.PN wtmp .If interrupted with a quit signal(generated by a <CTRL/E>).PN lastindicates how far the search has progressed so far, and thesearch continues..SH Options.IP \-\fIN\fR 5Limits the number of output lines to the specified number..SH Files.TP 20/usr/adm/wtmp login data base.TP/usr/adm/shutdownlog records that shutdowns occurred and why.SH See\ Alsowtmp(5), ac(8), lastcomm(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -