version 1.6, 1998/03/10 00:50:39 |
version 1.7, 1998/09/26 19:54:57 |
|
|
.Op Fl h Ar host |
.Op Fl h Ar host |
.Op Fl t Ar tty |
.Op Fl t Ar tty |
.Op Fl d Ar [[yy]yy[mm[dd[hh]]]]mm[.ss] |
.Op Fl d Ar [[yy]yy[mm[dd[hh]]]]mm[.ss] |
.Op user ... |
.Op Ar user ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Last |
.Nm last |
will either (1) list the sessions of specified |
will either (1) list the sessions of specified |
.Ar users , |
.Ar users , |
.Ar ttys , |
.Ar ttys , |
|
|
.It Fl c |
.It Fl c |
Calculates the total time displayed and prints it after the output. |
Calculates the total time displayed and prints it after the output. |
.It Fl f Ar file |
.It Fl f Ar file |
.Nm Last |
.Nm last |
reads the file |
reads the file |
.Ar file |
.Ar file |
instead of the default, |
instead of the default, |
|
|
.It Fl t Ar tty |
.It Fl t Ar tty |
Specify the |
Specify the |
.Ar tty . |
.Ar tty . |
Tty names may be given fully or abbreviated, for example, |
tty names may be given fully or abbreviated, for example, |
.Dq Li "last -t 03" |
.Dq Li "last -t 03" |
is |
is |
equivalent to |
equivalent to |
.Dq Li "last -t tty03" . |
.Dq Li "last -t tty03" . |
.It Fl h Ar host |
.It Fl h Ar host |
.Ar Host |
.Ar host |
names may be names or internet numbers. |
names may be names or internet numbers. |
.It Fl T |
.It Fl T |
Display better time information, including seconds. |
Display better time information, including seconds. |
|
|
All users logged in at the snapshot date & time will |
All users logged in at the snapshot date & time will |
be reported. |
be reported. |
This may be used with the |
This may be used with the |
.Ar -f file |
.Fl f |
option to derive the results from stored wtmp files. |
option to derive the results from stored wtmp files. |
When this argument is provided, all other options except for |
When this argument is provided, all other options except for |
.Ar -f file |
.Fl f |
and |
and |
.Ar -n |
.Fl n |
are ignored. |
are ignored. |
The argument should be in the form |
The argument should be in the form |
.Dq [[CC]YY][MMDD]hhmm[.SS] |
.Dq [[CC]YY][MMDD]hhmm[.SS] |
|
|
.Dq YY |
.Dq YY |
value of 20 is used. |
value of 20 is used. |
.It Ar MM |
.It Ar MM |
The month of the year, from 1 to 12. |
Month of the year, from 1 to 12. |
.It Ar DD |
.It Ar DD |
the day of the month, from 1 to 31. |
Day of the month, from 1 to 31. |
.It Ar hh |
.It Ar hh |
The hour of the day, from 0 to 23. |
Hour of the day, from 0 to 23. |
.It Ar mm |
.It Ar mm |
The minute of the hour, from 0 to 59. |
Minute of the hour, from 0 to 59. |
.It Ar SS |
.It Ar SS |
The second of the minute, from 0 to 61. |
Second of the minute, from 0 to 61. |
.El |
.El |
.Pp |
.Pp |
If the |
If the |
|
|
.Xr utmp 5 , |
.Xr utmp 5 , |
.Xr ac 8 |
.Xr ac 8 |
.Sh HISTORY |
.Sh HISTORY |
.Nm Last |
.Nm last |
appeared in |
appeared in |
.Bx 3.0 . |
.Bx 3.0 . |