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