1 .\" Copyright (c) 1989, 1990, 1993, 1994
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)finger.1 8.3 (Berkeley) 5/5/94
29 .\" $FreeBSD: src/usr.bin/finger/finger.1,v 1.9.2.12 2003/02/25 20:31:18 trhodes Exp $
31 .Dd September 11, 2019
36 .Nd user information lookup program
41 .Op Ar user@host ...\&
45 utility displays information about the system users.
48 .Bl -tag -width indent
52 to use IPv4 addresses only.
56 to use IPv6 addresses only.
58 Pass through 8-bit data. This option is intended for enabling 8-bit
61 service. Using this from the command line is
63 as the output data may include control characters for your terminal.
65 Display the user's login name, real name, terminal name and write
66 status (as a ``*'' before the terminal name if write permission is
67 denied), idle time, login time, and either office location and office
68 phone number, or the remote host.
71 is given, the office location and office phone number is printed
75 is given, the remote host is printed instead.
77 Idle time is in minutes if it is a single integer, hours and minutes
78 if a ``:'' is present, or days if a ``d'' is present.
81 the login time indicates the time of last login.
82 Login time is displayed as the day name if less than 6 days, else month, day;
83 hours and minutes, unless more than six months ago, in which case the year
84 is displayed rather than the hours and minutes.
86 Unknown devices as well as nonexistent idle and login times are
87 displayed as single asterisks.
89 When used in conjunction with the
91 option, the name of the remote host is displayed instead of the office
92 location and office phone.
94 When used in conjunction with the
96 option, the office location and office phone information is displayed
97 instead of the name of the remote host.
99 This option restricts the gecos output to only the users' real
101 It also has the side-effect of restricting the output
102 of the remote host when used in conjunction with the
106 Produce a multi-line format displaying all of the information
109 option as well as the user's home directory, home phone number, login
110 shell, mail status, and the contents of the files
116 from the user's home directory.
118 If idle time is at least a minute and less than a day, it is
119 presented in the form ``hh:mm''.
120 Idle times greater than a day are presented as ``d day[s]hh:mm''.
122 Phone numbers specified as eleven digits are printed as ``+N-NNN-NNN-NNNN''.
123 Numbers specified as ten or seven digits are printed as the appropriate
124 subset of that string.
125 Numbers specified as five digits are printed as ``xN-NNNN''.
126 Numbers specified as four digits are printed as ``xNNNN''.
128 If write permission is denied to the device, the phrase ``(messages off)''
129 is appended to the line containing the device name.
130 One entry per user is displayed with the
132 option; if a user is logged on multiple times, terminal information
133 is repeated once per login.
135 Mail status is shown as ``No Mail.'' if there is no mail at all, ``Mail
136 last read DDD MMM ## HH:MM YYYY (TZ)'' if the person has looked at their
137 mailbox since new mail arriving, or ``New mail received ...'', ``Unread
138 since ...'' if they have new mail.
145 from displaying the contents of the
157 is usually a login name; however, matching will also be done on the
158 users' real names, unless the
161 All name matching performed by
166 If no options are specified,
170 style output if operands are provided, otherwise to the
173 Note that some fields may be missing, in either format, if information
174 is not available for them.
176 If no arguments are specified,
178 will print an entry for each user currently logged into the system.
182 utility may be used to look up users on a remote machine.
183 The format is to specify a
189 where the default output
190 format for the former is the
192 style, and the default output format for the latter is the
197 option is the only option that may be passed to a remote machine.
201 exists in the user's home directory,
203 behaves as if the user in question does not exist.
207 configuration file can be used to specify aliases.
212 aliases will work for both local and network queries.
216 utility utilizes the following environment variable, if it exists:
219 This variable may be set with favored options to
223 .Bl -tag -width /var/log/lastlogx -compact
224 .It Pa /etc/finger.conf
225 alias definition data base
226 .It Pa /var/log/lastlogx
237 .%T The Finger User Information Protocol
247 The current FINGER protocol RFC requires that the client keep the connection
248 fully open until the server closes.
249 This prevents the use of the optimal
250 three-packet T/TCP exchange.
251 (Servers which depend on this requirement are
252 bogus but have nonetheless been observed in the Internet at large.)