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