last — Display Login and Logout Information

Synopsis

/usr/bin/last [-n number | -number][-f filename][name | tty]... 

Description

Use the last command to display login and logout information about users and terminals. The last command looks in the /var/adm/wtmpx file, which records all logins and logouts. You can use the arguments to specify names of users or terminals of interest. If you specify multiple arguments, the information applicable to the arguments is printed. For example, last root console lists all of root's sessions, as well as all sessions on the console terminal. last displays the sessions of the specified users and terminals, most recent first, indicating the times at which the session began, the duration of the session, ...

Get Solaris™ 7 Reference 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.