LASTLOGIN(8) | System Manager's Manual | LASTLOGIN(8) |
lastlogin
—
lastlogin |
[-Fnrt ] [-f
filename] [-H
hostsize] [-L
linesize] [-N
namesize] [user ...] |
lastlogin
will list the last login session of specified
users, or for all users by default. Each line of output
contains the user name, the tty from which the session was conducted, any
hostname, and the start time for the session.
If multiple users are given, the session information for each user is printed in the order given on the command line. Otherwise, information for all users is printed, sorted by uid.
lastlogin
differs from
last(1) in that it only prints
information regarding the very last login session. The last login database
is never turned over or deleted in standard usage.
The following options are available:
-F
-f
filename-H
hostlen-L
linelen-N
namelen-n
-r
-t
lastlogin
looks by default to the
/var/log/lastlogx database, where some old programs
that are not utmpx(5) aware might
only write to /var/log/lastlog. To look at the old
database one can use:
lastlogin -f
/var/log/lastlog
May 6, 2020 | NetBSD 9.4 |