1*0a6a1f1dSLionel Sambuc.\" $NetBSD: finger.1,v 1.18 2014/12/26 12:45:57 christos Exp $ 2406cdd95SThomas Cort.\" 3406cdd95SThomas Cort.\" Copyright (c) 1989, 1990, 1993, 1994 4406cdd95SThomas Cort.\" The Regents of the University of California. All rights reserved. 5406cdd95SThomas Cort.\" 6406cdd95SThomas Cort.\" Redistribution and use in source and binary forms, with or without 7406cdd95SThomas Cort.\" modification, are permitted provided that the following conditions 8406cdd95SThomas Cort.\" are met: 9406cdd95SThomas Cort.\" 1. Redistributions of source code must retain the above copyright 10406cdd95SThomas Cort.\" notice, this list of conditions and the following disclaimer. 11406cdd95SThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright 12406cdd95SThomas Cort.\" notice, this list of conditions and the following disclaimer in the 13406cdd95SThomas Cort.\" documentation and/or other materials provided with the distribution. 14406cdd95SThomas Cort.\" 3. Neither the name of the University nor the names of its contributors 15406cdd95SThomas Cort.\" may be used to endorse or promote products derived from this software 16406cdd95SThomas Cort.\" without specific prior written permission. 17406cdd95SThomas Cort.\" 18406cdd95SThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19406cdd95SThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20406cdd95SThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21406cdd95SThomas Cort.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22406cdd95SThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23406cdd95SThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24406cdd95SThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25406cdd95SThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26406cdd95SThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27406cdd95SThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28406cdd95SThomas Cort.\" SUCH DAMAGE. 29406cdd95SThomas Cort.\" 30406cdd95SThomas Cort.\" from: @(#)finger.1 8.3 (Berkeley) 5/5/94 31406cdd95SThomas Cort.\" 32*0a6a1f1dSLionel Sambuc.Dd December 25, 2014 33406cdd95SThomas Cort.Dt FINGER 1 34406cdd95SThomas Cort.Os 35406cdd95SThomas Cort.Sh NAME 36406cdd95SThomas Cort.Nm finger 37406cdd95SThomas Cort.Nd user information lookup program 38406cdd95SThomas Cort.Sh SYNOPSIS 39406cdd95SThomas Cort.Nm 40406cdd95SThomas Cort.Op Fl 8ghlmops 41406cdd95SThomas Cort.Op Ar user ... 42406cdd95SThomas Cort.Op Ar user@host ... 43406cdd95SThomas Cort.Sh DESCRIPTION 44406cdd95SThomas CortThe 45406cdd95SThomas Cort.Nm 46406cdd95SThomas Cortdisplays information about the system users. 47406cdd95SThomas Cort.Pp 48406cdd95SThomas CortOptions are: 49406cdd95SThomas Cort.Bl -tag -width flag 50406cdd95SThomas Cort.It Fl 8 51406cdd95SThomas CortPass through 8-bit data. 52406cdd95SThomas CortThis option is intended for enabling 8-bit 53406cdd95SThomas Cortdata output in the 54406cdd95SThomas Cort.Xr fingerd 8 55406cdd95SThomas Cortservice. 56406cdd95SThomas CortUsing this from the command line is 57406cdd95SThomas Cort.Em dangerous , 58406cdd95SThomas Cortas the output data may include control characters for your terminal. 59406cdd95SThomas Cort.It Fl g 60406cdd95SThomas CortThis option restricts the gecos output to only the users' real names. 61406cdd95SThomas Cort.It Fl h 62406cdd95SThomas CortWhen used in conjunction with the 63406cdd95SThomas Cort.Fl s 64406cdd95SThomas Cortoption, the name of the remote host is displayed instead of the office 65406cdd95SThomas Cortlocation and office phone. 66406cdd95SThomas Cort.It Fl l 67406cdd95SThomas CortProduces a multi-line format displaying all of the information 68406cdd95SThomas Cortdescribed for the 69406cdd95SThomas Cort.Fl s 70406cdd95SThomas Cortoption as well as the user's home directory, home phone number, login 71406cdd95SThomas Cortshell, mail status, and the contents of the files 72406cdd95SThomas Cort.Dq Pa .forward , 73406cdd95SThomas Cort.Dq Pa .plan 74406cdd95SThomas Cortand 75406cdd95SThomas Cort.Dq Pa .project 76406cdd95SThomas Cortfrom the user's home directory. 77406cdd95SThomas Cort.Pp 78406cdd95SThomas CortIf idle time is at least a minute and less than a day, it is 79406cdd95SThomas Cortpresented in the form 80406cdd95SThomas Cort.Dq hh:mm . 81406cdd95SThomas CortIdle times greater than a day are presented as 82406cdd95SThomas Cort.Dq d day[s]hh:mm . 83406cdd95SThomas Cort.Pp 84406cdd95SThomas CortPhone numbers specified as eleven digits are printed as 85406cdd95SThomas Cort.Dq +N-NNN-NNN-NNNN . 86406cdd95SThomas CortNumbers specified as ten or seven digits are printed as the appropriate 87406cdd95SThomas Cortsubset of that string. 88406cdd95SThomas CortNumbers specified as five digits are printed as 89406cdd95SThomas Cort.Dq xN-NNNN . 90406cdd95SThomas CortNumbers specified as four digits are printed as 91406cdd95SThomas Cort.Dq xNNNN . 92406cdd95SThomas Cort.Pp 93406cdd95SThomas CortIf write permission is denied to the device, the phrase 94406cdd95SThomas Cort.Dq (messages off) 95406cdd95SThomas Cortis appended to the line containing the device name. 96406cdd95SThomas CortOne entry per user is displayed with the 97406cdd95SThomas Cort.Fl l 98406cdd95SThomas Cortoption; if a user is logged on multiple times, terminal information 99406cdd95SThomas Cortis repeated once per login. 100406cdd95SThomas Cort.Pp 101406cdd95SThomas CortMail status is shown as 102406cdd95SThomas Cort.Dq \&No Mail. 103406cdd95SThomas Cortif there is no mail at all, ``Mail last read DDD MMM ## HH:MM YYYY (TZ)'' 104406cdd95SThomas Cortif the person has looked at their 105406cdd95SThomas Cortmailbox since new mail arriving, or 106406cdd95SThomas Cort.Dq New mail received ... , 107406cdd95SThomas Cort.Dq Unread since \&... 108406cdd95SThomas Cortif they have new mail. 109406cdd95SThomas Cort.It Fl m 110406cdd95SThomas CortPrevent matching of 111406cdd95SThomas Cort.Ar user 112406cdd95SThomas Cortnames. 113406cdd95SThomas Cort.Ar User 114406cdd95SThomas Cortis usually a login name; however, matching will also be done on the 115406cdd95SThomas Cortusers' real names, unless the 116406cdd95SThomas Cort.Fl m 117406cdd95SThomas Cortoption is supplied. 118406cdd95SThomas CortAll name matching performed by 119406cdd95SThomas Cort.Nm 120406cdd95SThomas Cortis case insensitive. 121406cdd95SThomas Cort.It Fl o 122406cdd95SThomas CortWhen used in conjunction with the 123406cdd95SThomas Cort.Fl s 124406cdd95SThomas Cortoption, the office location and office phone information is displayed. 125406cdd95SThomas CortThis is the default. 126406cdd95SThomas Cort.It Fl p 127406cdd95SThomas CortPrevents 128406cdd95SThomas Cortthe 129406cdd95SThomas Cort.Fl l 130406cdd95SThomas Cortoption of 131406cdd95SThomas Cort.Nm 132406cdd95SThomas Cortfrom displaying the contents of the 133406cdd95SThomas Cort.Dq Pa .forward , 134406cdd95SThomas Cort.Dq Pa .plan 135406cdd95SThomas Cortand 136406cdd95SThomas Cort.Dq Pa .project 137406cdd95SThomas Cortfiles. 138406cdd95SThomas Cort.It Fl s 139406cdd95SThomas Cort.Nm 140406cdd95SThomas Cortdisplays the user's login name, real name, terminal name and write 141406cdd95SThomas Cortstatus (as a 142406cdd95SThomas Cort.Dq * 143406cdd95SThomas Cortafter the terminal name if write permission is denied), idle time, 144406cdd95SThomas Cortlogin time, and either office location and office phone number, 145406cdd95SThomas Cortor the remote host. 146406cdd95SThomas CortIf 147406cdd95SThomas Cort.Fl h 148406cdd95SThomas Cortis given, the remote is printed. 149406cdd95SThomas CortIf 150406cdd95SThomas Cort.Fl o 151406cdd95SThomas Cortis given, the office location and phone number is printed instead 152406cdd95SThomas Cort(the default). 153406cdd95SThomas Cort.Pp 154406cdd95SThomas CortIdle time is in minutes if it is a single integer, hours and minutes 155406cdd95SThomas Cortif a 156406cdd95SThomas Cort.Dq \&: 157406cdd95SThomas Cortis present, or days if a 158406cdd95SThomas Cort.Dq d 159406cdd95SThomas Cortis present. 160406cdd95SThomas CortLogin time is displayed as the dayname if less than six days, 161406cdd95SThomas Cortelse month, day, hours and minutes, unless 162406cdd95SThomas Cortmore than six months ago, in which case the year is displayed rather 163406cdd95SThomas Cortthan the hours and minutes. 164406cdd95SThomas Cort.Pp 165406cdd95SThomas CortUnknown devices as well as nonexistent idle and login times are 166406cdd95SThomas Cortdisplayed as single asterisks. 167406cdd95SThomas Cort.El 168406cdd95SThomas Cort.Pp 169406cdd95SThomas CortIf no options are specified, 170406cdd95SThomas Cort.Nm 171406cdd95SThomas Cortdefaults to the 172406cdd95SThomas Cort.Fl l 173406cdd95SThomas Cortstyle output if operands are provided, otherwise to the 174406cdd95SThomas Cort.Fl s 175406cdd95SThomas Cortstyle. 176406cdd95SThomas CortNote that some fields may be missing, in either format, if information 177406cdd95SThomas Cortis not available for them. 178406cdd95SThomas Cort.Pp 179406cdd95SThomas CortIf no arguments are specified, 180406cdd95SThomas Cort.Nm 181406cdd95SThomas Cortwill print an entry for each user currently logged into the system. 182406cdd95SThomas Cort.Pp 183406cdd95SThomas Cort.Nm 184406cdd95SThomas Cortmay be used to look up users on a remote machine. 185406cdd95SThomas CortThe format is to specify a 186406cdd95SThomas Cort.Ar user 187406cdd95SThomas Cortas 188406cdd95SThomas Cort.Dq Li user@host , 189406cdd95SThomas Cortor 190406cdd95SThomas Cort.Dq Li @host , 191406cdd95SThomas Cortwhere the default output 192406cdd95SThomas Cortformat for the former is the 193406cdd95SThomas Cort.Fl l 194406cdd95SThomas Cortstyle, and the default output format for the latter is the 195406cdd95SThomas Cort.Fl s 196406cdd95SThomas Cortstyle. 197406cdd95SThomas CortThe 198406cdd95SThomas Cort.Fl l 199406cdd95SThomas Cortoption is the only option that may be passed to a remote machine. 200406cdd95SThomas Cort.Sh FILES 201406cdd95SThomas Cort.Bl -tag -width /var/log/lastlog -compact 202406cdd95SThomas Cort.It Pa /var/log/lastlog 203406cdd95SThomas Cortlast login data base 204406cdd95SThomas Cort.El 205406cdd95SThomas Cort.Sh SEE ALSO 206406cdd95SThomas Cort.Xr chpass 1 , 207406cdd95SThomas Cort.Xr w 1 , 208406cdd95SThomas Cort.Xr who 1 209406cdd95SThomas Cort.Sh HISTORY 210406cdd95SThomas CortThe 211406cdd95SThomas Cort.Nm 212406cdd95SThomas Cortcommand appeared in 213*0a6a1f1dSLionel Sambuc.Bx 2.0 : 214*0a6a1f1dSLionel Sambuc.Lk ftp://ftp.tuhs.org.ua/PDP-11/Distributions/ucb/2bsd.tar.gz 215