LAST(C) XENIX System V LAST(C)
Name
last - indicate last logins of users and teletypes
Syntax
last [ -n limit ] [ -l tty ] [ -v ] [ name ]
Description
Last checks the wtmp file, which records all logins and
logouts for information about a user, a tty line or any
group of users and lines. Arguments specify a user name
and/or tty.
last-l tty01 root
would list all ``root'' sessions as well as all sessions on
/dev/tty01. last prints the sessions of the specified users
and ttys, including login name, the line used, the device
name, the process ID, plus start time and elapsed time.
last with no arguments prints a record of all logins and
logouts, in reverse order.
The options behave as follows:
-n limit
limits the report to n lines.
-l line
specifies the tty.
-v prints header (verbose option).
Files
/etc/wtmp login data base
See Also
finger(C), utmp(M), accton(ADM), acctcom(ADM), acct(F)
Page 1 (printed 2/7/91)