OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man8 / lastlog.8
1 .\"$Id: lastlog.8,v 1.10 2001/01/27 02:55:52 kloczek Exp $
2 .\" Copyright 1992, Phillip Street and Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"     @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
29 .TH LASTLOG 8
30 .SH NAME
31 lastlog \- examine lastlog file
32 .SH SYNOPSIS
33 .TP 8
34 \fBlastlog\fR [<\fB-u\fR|\fB--user\fR> \fIlogin-name\fR]
35 [<\fB-t\fR|\fB--time\fR> \fIdays\fR] [<\fB-h\fR|\fB--help\fR>]
36 .SH DESCRIPTION
37 .PP
38 \fBlastlog\fR formats and prints the contents of the last login log
39 \fI/var/log/lastlog\fR file . The \fBlogin-name\fR, \fBport\fR, and \fBlast
40 login time\fR will be printed. The default (no flags) causes lastlog entries
41 to be printed, sorted by the numerical UID.
42 .TP
43 \fB-u\fR, \fB--user\fR \fIlogin-name\fR will cause the lastlog record for
44 \fIlogin-name\fR only to be printed
45 .TP
46 \fB-t\fR, \fB--time\fR \fIdays\fR will cause only the lastlogins more recent
47 \than fIdays\fR to be printed
48 .TP
49 \fB-h\fR, \fB--help\fR print a one-line help message and exit.
50 .BR
51 .TP
52 The \fB-t\fR flag overrides the use of \fB-u\fR.
53 .PP
54 If the user has never logged in the message \fB"**Never logged in**"\fR will
55 be displayed instead of the port and time.
56 .SH FILES
57 /var/log/lastlog \- lastlog logging file
58 .SH CAVEATS
59 Large gaps in uid numbers will cause the lastlog program to run longer with
60 no output to the screen (i.e. if mmdf=800 and last uid=170, program will
61 appear to hang as it processes uid 171-799).
62 .SH AUTHORS
63 Julianne Frances Haugh (jockgrrl@ix.netcom.com)
64 .BR
65 Phillip Street