xref: /netbsd-src/usr.bin/finger/finger.1 (revision 2bdb47dc37d3b3da2db36b46ed2ad2d6dd2c2605)
1*2bdb47dcSkim.\"	$NetBSD: finger.1,v 1.22 2020/05/07 13:40:20 kim Exp $
29d225a17Stls.\"
3987dbad8Smrg.\" Copyright (c) 1989, 1990, 1993, 1994
4987dbad8Smrg.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30987dbad8Smrg.\"	from: @(#)finger.1	8.3 (Berkeley) 5/5/94
3161f28255Scgd.\"
32*2bdb47dcSkim.Dd May 7, 2020
3361f28255Scgd.Dt FINGER 1
349e44e9b5Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm finger
3761f28255Scgd.Nd user information lookup program
3861f28255Scgd.Sh SYNOPSIS
39987dbad8Smrg.Nm
401e2e8ea0Swiz.Op Fl 8ghlmops
4161f28255Scgd.Op Ar user ...
4261f28255Scgd.Op Ar user@host ...
4361f28255Scgd.Sh DESCRIPTION
4461f28255ScgdThe
45987dbad8Smrg.Nm
462faad91bSabhinavutility displays information about the system users.
4761f28255Scgd.Pp
4861f28255ScgdOptions are:
4961f28255Scgd.Bl -tag -width flag
501e2e8ea0Swiz.It Fl 8
51be8ae688SgrantPass through 8-bit data.
52be8ae688SgrantThis option is intended for enabling 8-bit
531e2e8ea0Swizdata output in the
541e2e8ea0Swiz.Xr fingerd 8
55be8ae688Sgrantservice.
56be8ae688SgrantUsing this from the command line is
571e2e8ea0Swiz.Em dangerous ,
581e2e8ea0Swizas the output data may include control characters for your terminal.
591e2e8ea0Swiz.It Fl g
601e2e8ea0SwizThis option restricts the gecos output to only the users' real names.
613ccb8ba1Slukem.It Fl h
623ccb8ba1SlukemWhen used in conjunction with the
633ccb8ba1Slukem.Fl s
643ccb8ba1Slukemoption, the name of the remote host is displayed instead of the office
653ccb8ba1Slukemlocation and office phone.
6661f28255Scgd.It Fl l
6761f28255ScgdProduces a multi-line format displaying all of the information
6861f28255Scgddescribed for the
6961f28255Scgd.Fl s
7061f28255Scgdoption as well as the user's home directory, home phone number, login
714eae27f3Sbrezakshell, mail status, and the contents of the files
72342f8498Sfrueauf.Dq Pa .forward ,
7361f28255Scgd.Dq Pa .plan
7461f28255Scgdand
7561f28255Scgd.Dq Pa .project
7661f28255Scgdfrom the user's home directory.
7761f28255Scgd.Pp
7861f28255ScgdIf idle time is at least a minute and less than a day, it is
791e2e8ea0Swizpresented in the form
801e2e8ea0Swiz.Dq hh:mm .
811e2e8ea0SwizIdle times greater than a day are presented as
821e2e8ea0Swiz.Dq d day[s]hh:mm .
8361f28255Scgd.Pp
841e2e8ea0SwizPhone numbers specified as eleven digits are printed as
851e2e8ea0Swiz.Dq +N-NNN-NNN-NNNN .
8661f28255ScgdNumbers specified as ten or seven digits are printed as the appropriate
8761f28255Scgdsubset of that string.
881e2e8ea0SwizNumbers specified as five digits are printed as
891e2e8ea0Swiz.Dq xN-NNNN .
901e2e8ea0SwizNumbers specified as four digits are printed as
911e2e8ea0Swiz.Dq xNNNN .
9261f28255Scgd.Pp
931e2e8ea0SwizIf write permission is denied to the device, the phrase
941e2e8ea0Swiz.Dq (messages off)
9561f28255Scgdis appended to the line containing the device name.
9661f28255ScgdOne entry per user is displayed with the
9761f28255Scgd.Fl l
9861f28255Scgdoption; if a user is logged on multiple times, terminal information
9961f28255Scgdis repeated once per login.
10061f28255Scgd.Pp
1011e2e8ea0SwizMail status is shown as
1021e2e8ea0Swiz.Dq \&No Mail.
1031e2e8ea0Swizif there is no mail at all, ``Mail last read DDD MMM ## HH:MM YYYY (TZ)''
1041e2e8ea0Swizif the person has looked at their
1051e2e8ea0Swizmailbox since new mail arriving, or
1061e2e8ea0Swiz.Dq New mail received ... ,
1071e2e8ea0Swiz.Dq Unread since \&...
1081e2e8ea0Swizif they have new mail.
10961f28255Scgd.It Fl m
11061f28255ScgdPrevent matching of
11161f28255Scgd.Ar user
11261f28255Scgdnames.
11361f28255Scgd.Ar User
11461f28255Scgdis usually a login name; however, matching will also be done on the
11561f28255Scgdusers' real names, unless the
11661f28255Scgd.Fl m
11761f28255Scgdoption is supplied.
11861f28255ScgdAll name matching performed by
119987dbad8Smrg.Nm
12061f28255Scgdis case insensitive.
1211e2e8ea0Swiz.It Fl o
1221e2e8ea0SwizWhen used in conjunction with the
1231e2e8ea0Swiz.Fl s
124089467b8Sdhollandoption, the office location and office phone information is displayed.
125089467b8SdhollandThis is the default.
1261e2e8ea0Swiz.It Fl p
1271e2e8ea0SwizPrevents
1281e2e8ea0Swizthe
1291e2e8ea0Swiz.Fl l
1301e2e8ea0Swizoption of
1311e2e8ea0Swiz.Nm
1321e2e8ea0Swizfrom displaying the contents of the
1331e2e8ea0Swiz.Dq Pa .forward ,
1341e2e8ea0Swiz.Dq Pa .plan
1351e2e8ea0Swizand
1361e2e8ea0Swiz.Dq Pa .project
1371e2e8ea0Swizfiles.
1381e2e8ea0Swiz.It Fl s
1391e2e8ea0Swiz.Nm
1401e2e8ea0Swizdisplays the user's login name, real name, terminal name and write
1411e2e8ea0Swizstatus (as a
1421e2e8ea0Swiz.Dq *
1431e2e8ea0Swizafter the terminal name if write permission is denied), idle time,
1441e2e8ea0Swizlogin time, and either office location and office phone number,
1451e2e8ea0Swizor the remote host.
1461e2e8ea0SwizIf
1471e2e8ea0Swiz.Fl h
1481e2e8ea0Swizis given, the remote is printed.
1491e2e8ea0SwizIf
1501e2e8ea0Swiz.Fl o
1511e2e8ea0Swizis given, the office location and phone number is printed instead
1521e2e8ea0Swiz(the default).
1531e2e8ea0Swiz.Pp
1541e2e8ea0SwizIdle time is in minutes if it is a single integer, hours and minutes
1551e2e8ea0Swizif a
1561e2e8ea0Swiz.Dq \&:
1571e2e8ea0Swizis present, or days if a
1581e2e8ea0Swiz.Dq d
1591e2e8ea0Swizis present.
1601e2e8ea0SwizLogin time is displayed as the dayname if less than six days,
1611e2e8ea0Swizelse month, day, hours and minutes, unless
1621e2e8ea0Swizmore than six months ago, in which case the year is displayed rather
1631e2e8ea0Swizthan the hours and minutes.
1641e2e8ea0Swiz.Pp
1651e2e8ea0SwizUnknown devices as well as nonexistent idle and login times are
1661e2e8ea0Swizdisplayed as single asterisks.
16761f28255Scgd.El
16861f28255Scgd.Pp
16961f28255ScgdIf no options are specified,
170987dbad8Smrg.Nm
17161f28255Scgddefaults to the
17261f28255Scgd.Fl l
17361f28255Scgdstyle output if operands are provided, otherwise to the
17461f28255Scgd.Fl s
17561f28255Scgdstyle.
17661f28255ScgdNote that some fields may be missing, in either format, if information
17761f28255Scgdis not available for them.
17861f28255Scgd.Pp
17961f28255ScgdIf no arguments are specified,
180987dbad8Smrg.Nm
18161f28255Scgdwill print an entry for each user currently logged into the system.
18261f28255Scgd.Pp
1832faad91bSabhinavThe
184987dbad8Smrg.Nm
1852faad91bSabhinavutility may be used to look up users on a remote machine.
18661f28255ScgdThe format is to specify a
18761f28255Scgd.Ar user
18861f28255Scgdas
18961f28255Scgd.Dq Li user@host ,
19061f28255Scgdor
19161f28255Scgd.Dq Li @host ,
19261f28255Scgdwhere the default output
19361f28255Scgdformat for the former is the
19461f28255Scgd.Fl l
19561f28255Scgdstyle, and the default output format for the latter is the
19661f28255Scgd.Fl s
19761f28255Scgdstyle.
19861f28255ScgdThe
19961f28255Scgd.Fl l
20061f28255Scgdoption is the only option that may be passed to a remote machine.
201987dbad8Smrg.Sh FILES
202*2bdb47dcSkim.Bl -tag -width /var/log/lastlogx -compact
203*2bdb47dcSkim.It Pa /var/run/utmpx
204*2bdb47dcSkimThe
205*2bdb47dcSkim.Nm utmpx
206*2bdb47dcSkimfile.
207*2bdb47dcSkim.It Pa /var/log/lastlogx
208*2bdb47dcSkimThe
209*2bdb47dcSkim.Nm lastlogx
210*2bdb47dcSkimfile.
211*2bdb47dcSkim.It Pa /var/run/utmp
212*2bdb47dcSkimThe
213*2bdb47dcSkim.Nm utmp
214*2bdb47dcSkimfile.
215987dbad8Smrg.It Pa /var/log/lastlog
216*2bdb47dcSkimThe
217*2bdb47dcSkim.Nm lastlog
218*2bdb47dcSkimfile.
219987dbad8Smrg.El
22061f28255Scgd.Sh SEE ALSO
22161f28255Scgd.Xr chpass 1 ,
22261f28255Scgd.Xr w 1 ,
2232faad91bSabhinav.Xr who 1 ,
2242faad91bSabhinav.Xr fingerd 8
22561f28255Scgd.Sh HISTORY
22661f28255ScgdThe
227987dbad8Smrg.Nm
22861f28255Scgdcommand appeared in
229efbdbc2cSsevan.Bx 2.0 .
230