Rev | Line | |
---|
[9] | 1 | .TH LAST 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | last, uptime \- display recent on-line session records, show uptime
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | \fBlast\fR [\fB\-f \fIfile\fR]\fR [\fB\-r\fR] [\fB\-\fIn\fR] [\fIname\fR] [\fItty\fR] ...\fR
|
---|
| 6 | .br
|
---|
| 7 | \fBuptime\fR
|
---|
| 8 | .br
|
---|
| 9 | .de FL
|
---|
| 10 | .TP
|
---|
| 11 | \\fB\\$1\\fR
|
---|
| 12 | \\$2
|
---|
| 13 | ..
|
---|
| 14 | .de EX
|
---|
| 15 | .TP 20
|
---|
| 16 | \\fB\\$1\\fR
|
---|
| 17 | # \\$2
|
---|
| 18 | ..
|
---|
| 19 | .SH OPTIONS
|
---|
| 20 | .FL "\-f" "Use \fIfile\fR instead of /usr/adm/wtmp"
|
---|
| 21 | .FL "\-r" "Search backwards only to last reboot"
|
---|
| 22 | .FL "\-u" "Print uptime since last reboot"
|
---|
| 23 | .FL "\-\fIn\fP" "Print a maximum of \fIn\fR lines"
|
---|
| 24 | .SH EXAMPLES
|
---|
| 25 | .EX "last reboot" "When was the system last rebooted?"
|
---|
| 26 | .EX "last ast" "When was the last login for ast?"
|
---|
| 27 | .EX "last \-10 tty00 tty01" "Display last 10 logins on tty00 or tty01"
|
---|
| 28 | .EX "uptime" "Display uptime (likewise \fBlast \-u\fR)"
|
---|
| 29 | .SH DESCRIPTION
|
---|
| 30 | .PP
|
---|
| 31 | .I Last
|
---|
| 32 | Searches backward through the login administration file (default is
|
---|
| 33 | \fI/usr/adm/wtmp\fR), printing information about previous logins and
|
---|
| 34 | reboots.
|
---|
| 35 | During a long search, the SIGQUIT signal (CTRL-\\) causes \fIlast\fR to
|
---|
| 36 | display how far back it has gone; it then continues.
|
---|
| 37 | .PP
|
---|
| 38 | .IR Uptime ,
|
---|
| 39 | an alias for
|
---|
| 40 | .IR "last \-u" ,
|
---|
| 41 | displays the time the system is running since the last reboot.
|
---|
| 42 | .SH "SEE ALSO"
|
---|
| 43 | .BR who (1),
|
---|
| 44 | .BR utmp (5).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.