Show idle time for each user in hours and minutes as
.Ar hh Ns : Ns Ar mm ,
.Ql \&.
-if the user has been idle less that a minute, and
+if the user has been idle less than a minute, and
.Dq Li old
if the user has been idle more than 24 hours.
+Additionally, display the PID of the user's login process.
.It Cm am I
Equivalent to
.Fl m .
By default,
.Nm
gathers information from the file
-.Pa /var/run/utmp .
+.Pa /var/run/utmpx .
An alternate
.Ar file
-may be specified which is usually
-.Pa /var/log/wtmp
-(or
-.Pa /var/log/wtmp.[0-6]
-depending on site policy as
-.Pa wtmp
-can grow quite large and daily versions may or may not
-be kept around after compression by
-.Xr ac 8 ) .
-The
-.Pa wtmp
-file contains a record of every login, logout,
-crash, shutdown and date change
-since
-.Pa wtmp
-was last truncated or
-created.
-.Pp
-If
-.Pa /var/log/wtmp
-is being used as the file, the user name may be empty
-or one of the special characters '|', '}' and '~'.
-Logouts produce
-an output line without any user name.
-For more information on the
-special characters, see
-.Xr utmp 5 .
+may be specified.
+.Sh LEGACY DESCRIPTION
+In legacy mode,
+.Fl u
+does not display the PID of the user's login process.
.Sh ENVIRONMENT
The
.Ev COLUMNS , LANG , LC_ALL
as described in
.Xr environ 7 .
.Sh FILES
-.Bl -tag -width /var/log/wtmp.[0-6] -compact
-.It Pa /var/run/utmp
-.It Pa /var/log/wtmp
-.It Pa /var/log/wtmp.[0-6]
+.Bl -tag -width /var/log/utmpx -compact
+.It Pa /var/run/utmpx
.El
.Sh DIAGNOSTICS
.Ex -std
.Xr last 1 ,
.Xr users 1 ,
.Xr w 1 ,
-.Xr utmp 5
+.Xr compat 5 ,
+.Xr utmpx 5
.Sh STANDARDS
The
.Nm