]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/finger/finger.1
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / usr.bin / finger / finger.1
1 .\" Copyright (c) 1989, 1990, 1993, 1994
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)finger.1    8.3 (Berkeley) 5/5/94
33 .\" $FreeBSD$
34 .\"
35 .Dd August 1, 1997
36 .Dt FINGER 1
37 .Os BSD 4
38 .Sh NAME
39 .Nm finger
40 .Nd user information lookup program
41 .Sh SYNOPSIS
42 .Nm finger
43 .Op Fl lmpshoT
44 .Op Ar user ...
45 .Op Ar user@host ...
46 .Sh DESCRIPTION
47 The
48 .Nm finger
49 displays information about the system users.
50 .Pp
51 Options are:
52 .Bl -tag -width flag
53 .It Fl s
54 .Nm Finger
55 displays the user's login name, real name, terminal name and write
56 status (as a ``*'' before the terminal name if write permission is
57 denied), idle time, login time, and either office location and office
58 phone number, or the remote host.
59 If
60 .Fl h
61 is given, the remote host is printed (the default).  If
62 .Fl o
63 is given, the office location and office phone number is printed
64 instead.
65 .Pp
66 Idle time is in minutes if it is a single integer, hours and minutes
67 if a ``:'' is present, or days if a ``d'' is present.
68 Login time is displayed as the dayname if less than 6 days, else month, day;
69 hours and minutes, unless more than six months ago, in which case the year
70 is displayed rather than the hours and minutes.
71 .Pp
72 Unknown devices as well as nonexistent idle and login times are
73 displayed as single asterisks.
74 .Pp
75 .It Fl h
76 When used in conjunction with the
77 .Fl s
78 option, the name of the remote host is displayed instead of the office
79 location and office phone.
80 .Pp
81 .It Fl o
82 When used in conjunction with the
83 .Fl s
84 option, the office location and office phone information is displayed
85 instead of the name of the remote host.
86 .Pp
87 .It Fl l
88 Produces a multi-line format displaying all of the information
89 described for the
90 .Fl s
91 option as well as the user's home directory, home phone number, login
92 shell, mail status, and the contents of the files
93 .Dq Pa .forward ,
94 .Dq Pa .plan
95 and
96 .Dq Pa .project
97 from the user's home directory.
98 .Pp
99 If idle time is at least a minute and less than a day, it is
100 presented in the form ``hh:mm''.
101 Idle times greater than a day are presented as ``d day[s]hh:mm''.
102 .Pp
103 Phone numbers specified as eleven digits are printed as ``+N-NNN-NNN-NNNN''.
104 Numbers specified as ten or seven digits are printed as the appropriate
105 subset of that string.
106 Numbers specified as five digits are printed as ``xN-NNNN''.
107 Numbers specified as four digits are printed as ``xNNNN''.
108 .Pp
109 If write permission is denied to the device, the phrase ``(messages off)''
110 is appended to the line containing the device name.
111 One entry per user is displayed with the
112 .Fl l
113 option; if a user is logged on multiple times, terminal information
114 is repeated once per login.
115 .Pp
116 Mail status is shown as ``No Mail.'' if there is no mail at all, ``Mail
117 last read DDD MMM ## HH:MM YYYY (TZ)'' if the person has looked at their
118 mailbox since new mail arriving, or ``New mail received ...'', ``Unread
119 since ...'' if they have new mail.
120 .Pp
121 .It Fl p
122 Prevents
123 the
124 .Fl l
125 option of
126 .Nm finger
127 from displaying the contents of the
128 .Dq Pa .forward ,
129 .Dq Pa .plan
130 and
131 .Dq Pa .project
132 files.
133 .It Fl m
134 Prevent matching of
135 .Ar user
136 names.
137 .Ar User
138 is usually a login name; however, matching will also be done on the
139 users' real names, unless the
140 .Fl m
141 option is supplied.
142 All name matching performed by
143 .Nm finger
144 is case insensitive.
145 .Pp
146 .It Fl T
147 Disable the use of T/TCP (see
148 .Xr ttcp 4 ).
149 This option is needed to finger hosts with a broken TCP implementation.
150 .El
151 .Pp
152 If no options are specified,
153 .Nm finger
154 defaults to the
155 .Fl l
156 style output if operands are provided, otherwise to the
157 .Fl s
158 style.
159 Note that some fields may be missing, in either format, if information
160 is not available for them.
161 .Pp
162 If no arguments are specified,
163 .Nm finger
164 will print an entry for each user currently logged into the system.
165 .Pp
166 .Nm Finger
167 may be used to look up users on a remote machine.
168 The format is to specify a
169 .Ar user
170 as
171 .Dq Li user@host ,
172 or
173 .Dq Li @host ,
174 where the default output
175 format for the former is the
176 .Fl l
177 style, and the default output format for the latter is the
178 .Fl s
179 style.
180 The
181 .Fl l
182 option is the only option that may be passed to a remote machine.
183 .Pp
184 If the file
185 .Dq Pa .nofinger
186 exists in the user's home directory,
187 .Nm finger
188 behaves as if the user in question does not exist.
189 .Sh ENVIRONMENT
190 .Nm Finger
191 utilizes the following environment variable, if it exists:
192 .Bl -tag -width Fl
193 .It Ev FINGER
194 This variable may be set with favored options to
195 .Nm finger .
196 .El
197 .Sh FILES
198 .Bl -tag -width /var/log/lastlog -compact
199 .It Pa /var/log/lastlog
200 last login data base
201 .El
202 .Sh SEE ALSO
203 .Xr chpass 1 ,
204 .Xr w 1 ,
205 .Xr who 1 ,
206 .Xr ttcp 4 .
207 .Rs
208 .%A D. Zimmerman
209 .%T The Finger User Information Protocol
210 .%R RFC 1288
211 .%D December, 1991
212 .Re
213 .Sh HISTORY
214 The
215 .Nm finger
216 command appeared in
217 .Bx 3.0 .
218 .Sh BUGS
219 The current FINGER protocol RFC requires that the client keep the connection
220 fully open until the server closes.  This prevents the use of the optimal
221 three-packet T/TCP exchange.  (Servers which depend on this requirement are
222 bogus but have nonetheless been observed in the Internet at large.)