1.\" $FreeBSD: src/usr.sbin/lastlogin/lastlogin.8,v 1.2.2.2 2003/03/11 21:13:50 trhodes Exp $ 2.\" $DragonFly: src/usr.sbin/lastlogin/lastlogin.8,v 1.2 2003/06/17 04:29:55 dillon Exp $ 3.\" $NetBSD: lastlogin.8,v 1.3 1998/02/06 06:20:39 perry Exp $ 4.\" 5.\" Copyright (c) 1996 John M. Vinopal 6.\" All rights reserved. 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. 16.\" 3. All advertising materials mentioning features or use of this software 17.\" must display the following acknowledgement: 18.\" This product includes software developed for the NetBSD Project 19.\" by John M. Vinopal. 20.\" 4. The name of the author may not be used to endorse or promote products 21.\" derived from this software without specific prior written permission. 22.\" 23.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 24.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 27.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 30.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 31.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.Dd January 11, 1996 36.Dt LASTLOGIN 8 37.Os 38.Sh NAME 39.Nm lastlogin 40.Nd indicate last login time of users 41.Sh SYNOPSIS 42.Nm 43.Op Ar user ... 44.Sh DESCRIPTION 45The 46.Nm 47utility will list the last login session of each specified 48.Ar user , 49or for all users by default. Each line of output contains 50the user name, the tty from which the session was conducted, any 51hostname, and the start time for the session. 52.Pp 53If more than one 54.Ar user 55is given, the session information for each user is printed in 56the order given on the command line. Otherwise, information 57for all users is printed, sorted by uid. 58.Pp 59The 60.Nm 61utility differs from 62.Xr last 1 63in that it only prints information regarding the very last login session. 64The last login database is never turned over or deleted in standard usage. 65.Sh FILES 66.Bl -tag -width /var/log/lastlogx -compact 67.It Pa /var/log/lastlog 68last login database 69.It Pa /var/log/lastlogx 70last login database 71.El 72.Sh SEE ALSO 73.Xr last 1 , 74.Xr lastlog 5 , 75.Xr ac 8 76.Sh AUTHORS 77.An John M. Vinopal 78wrote this program in January 1996 and contributed it 79to the 80.Nx 81project. 82