last(C) 19 June 1992 last(C) Name last - indicate last logins of users and teletypes Syntax last [ -h ] [ -n limit ] [ -t tty ] [ -w wtmpfile ] [ name ] Description The last command 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 -t 01 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 chronological order. The options behave as follows: -h no header. -n limit limits the report to n lines. -t line specifies the tty. -w wtmpfile uses wtmpfile instead of /etc/wtmp. Note that this file must have the same format as /etc/wtmp. File /etc/wtmp login database See also acct(FP), acctcom(ADM), accton(ADM), finger(C), utmp(F) Value added last is an extension of AT&T System V provided by The Santa Cruz Opera- tion, Inc.