1.\" $OpenBSD: finger.1,v 1.12 2000/01/12 01:53:30 aaron Exp $ 2.\" 3.\" Copyright (c) 1989, 1990 The Regents of the University of California. 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 by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" from: @(#)finger.1 6.14 (Berkeley) 7/27/91 35.\" 36.Dd July 27, 1991 37.Dt FINGER 1 38.Os 39.Sh NAME 40.Nm finger 41.Nd user information lookup program 42.Sh SYNOPSIS 43.Nm finger 44.Op Fl lmMspho 45.Op Ar user ... 46.Nm finger 47.Op Fl l 48.Op Ar user@host ... 49.Sh DESCRIPTION 50The 51.Nm 52utility displays information about local and remote system users. 53By default, the following information is displayed about each user 54currently logged-in to the local host: 55.Pp 56.Bl -bullet -offset indent -compact 57.It 58login name 59.It 60user's full name 61.It 62associated terminal name 63.It 64idle time 65.It 66login time 67.It 68office location 69.It 70office phone 71.El 72.Pp 73Idle time is in minutes if it is a single integer, hours and minutes 74if a 75.Ql \&: 76is present, or days if a 77.Sq d 78is present. 79Login time is displayed as the day name if less than six days, 80else month, day, hours and minutes, unless 81more than six months ago, in which case the year is displayed rather 82than the hours and minutes. 83.Pp 84The names of terminals for which write permission is denied (see 85.Xr mesg 1 ) 86are prepended with an asterisk 87.Pq Sq \&* . 88Unknown devices as well as nonexistent idle and login times are 89displayed as single asterisks. 90.Pp 91The options are as follows: 92.Bl -tag -width flag 93.It Fl s 94Short format (default). 95The information as described above is displayed in a columnar fashion. 96.Pp 97.It Fl h 98If the 99.Fl s 100option is also specified, the name of the remote host is displayed instead of 101the office location and office phone. 102.Pp 103.It Fl o 104If the 105.Fl s 106option is also specified, the office location and office phone is displayed 107instead of the name of the remote host. 108.Pp 109.It Fl l 110Long format. 111Produces a multi-line format displaying all of the information available from 112the 113.Fl s 114option as well as the user's home directory, home phone number, login 115shell, mail status, and the contents of the 116.Dq Pa .plan 117and 118.Dq Pa .project 119files from the user's home directory. 120.Pp 121If idle time is at least a minute and less than a day, it is 122presented in the form 123.Dq hh:mm . 124Idle times greater than a day are presented as 125.Dq d day[s]hh:mm . 126.Pp 127Phone numbers specified as eleven digits are printed as 128.Dq +N-NNN-NNN-NNNN . 129Numbers specified as ten or seven digits are printed as the appropriate 130subset of that string. 131Numbers specified as five digits are printed as 132.Dq xN-NNNN . 133Numbers specified as four digits are printed as 134.Dq xNNNN . 135.Pp 136If write permission is denied to the device, the phrase 137.Dq (messages off) 138is appended to the line containing the device name. 139One entry per user is displayed with the 140.Fl l 141option; if a user is logged on multiple times, terminal information 142is repeated once per login. 143.Pp 144Mail status is shown as 145.Dq \&No Mail. 146if there is no mail at all, 147.Do 148Mail last read DDD MMM ## HH:MM YYYY (TZ) 149.Dc 150if the person has looked 151at their mailbox since new mail arriving, or 152.Dq New mail received ... , 153.Dq Unread since ... 154if they have new mail. 155.Pp 156.It Fl p 157Prevents 158the 159.Fl l 160option of 161.Nm 162from displaying the contents of the 163.Dq Pa .plan 164and 165.Dq Pa .project 166files. 167.It Fl m 168Prevent matching of 169.Ar user 170names. 171.Ar User 172is usually a login name; however, matching will also be done on the 173users' real names, unless the 174.Fl m 175option is supplied. 176All name matching performed by 177.Nm 178is case insensitive. 179.It Fl M 180Enable matching of 181.Ar user 182names. This is disabled by default on systems running YP or with large 183password databases. 184.El 185.Pp 186If no options are specified, 187.Nm 188defaults to the 189.Fl l 190style output if operands are provided, otherwise to the 191.Fl s 192style. 193Note that some fields may be missing, in either format, if information 194is not available for them. 195.Pp 196.Nm 197may be used to look up users on a remote machine. 198The format is to specify a 199.Ar user 200as 201.Dq Li user@host , 202or 203.Dq Li @host , 204where the default output 205format for the former is the 206.Fl l 207style, and the default output format for the latter is the 208.Fl s 209style. 210The 211.Fl l 212option is the only option that may be passed to a remote machine. 213.Sh SEE ALSO 214.Xr chpass 1 , 215.Xr w 1 , 216.Xr who 1 , 217.Xr fingerd 8 218.Sh HISTORY 219The 220.Nm 221command appeared in 222.Bx 3.0 . 223