Name
last
Synopsis
last [options
] [users
]
Lists information about current and previous login sessions,
including username and duration of each session. Sessions are listed
one per line, newest first. To view only sessions from select users,
specify those usernames in users
.
Options
-
-f
file
Read from log
file
instead of/var/log/wtemp
, the default.-
-h
host
Report only on those sessions initiated from machine
host
.-
-
n
Display only the first
n
lines of output.-
-t
tty
Report only on those sessions initiated from device
tty
. To list Aqua logins, for example, specifyconsole
fortty
.
Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.