1df3f5d9dSPeter Wemm.\" Copyright (c) 1989, 1990, 1993, 1994 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 129b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 139b50d902SRodney W. Grimes.\" must display the following acknowledgement: 149b50d902SRodney W. Grimes.\" This product includes software developed by the University of 159b50d902SRodney W. Grimes.\" California, Berkeley and its contributors. 169b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 179b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 189b50d902SRodney W. Grimes.\" without specific prior written permission. 199b50d902SRodney W. Grimes.\" 209b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 219b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 229b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 239b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 249b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 259b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 269b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 279b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 289b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 299b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 309b50d902SRodney W. Grimes.\" SUCH DAMAGE. 319b50d902SRodney W. Grimes.\" 32df3f5d9dSPeter Wemm.\" @(#)finger.1 8.3 (Berkeley) 5/5/94 339b50d902SRodney W. Grimes.\" 34df3f5d9dSPeter Wemm.Dd May 5, 1994 359b50d902SRodney W. Grimes.Dt FINGER 1 369b50d902SRodney W. Grimes.Os BSD 4 379b50d902SRodney W. Grimes.Sh NAME 389b50d902SRodney W. Grimes.Nm finger 399b50d902SRodney W. Grimes.Nd user information lookup program 409b50d902SRodney W. Grimes.Sh SYNOPSIS 419b50d902SRodney W. Grimes.Nm finger 4203801815SAndras Olah.Op Fl lmpshoT 439b50d902SRodney W. Grimes.Op Ar user ... 449b50d902SRodney W. Grimes.Op Ar user@host ... 459b50d902SRodney W. Grimes.Sh DESCRIPTION 469b50d902SRodney W. GrimesThe 479b50d902SRodney W. Grimes.Nm finger 489b50d902SRodney W. Grimesdisplays information about the system users. 499b50d902SRodney W. Grimes.Pp 509b50d902SRodney W. GrimesOptions are: 519b50d902SRodney W. Grimes.Bl -tag -width flag 529b50d902SRodney W. Grimes.It Fl s 539b50d902SRodney W. Grimes.Nm Finger 549b50d902SRodney W. Grimesdisplays the user's login name, real name, terminal name and write 559b50d902SRodney W. Grimesstatus (as a ``*'' before the terminal name if write permission is 5686641d8fSPaul Trainadenied), idle time, login time, and either office location and office 5786641d8fSPaul Trainaphone number, or the remote host. If 5886641d8fSPaul Traina.Fl h 5986641d8fSPaul Trainais given, the remote host is printed (the default.) If 6086641d8fSPaul Traina.Fl o 6186641d8fSPaul Trainais given, the office location and office phone number is printed 6286641d8fSPaul Trainainstead. 639b50d902SRodney W. Grimes.Pp 649b50d902SRodney W. GrimesIdle time is in minutes if it is a single integer, hours and minutes 659b50d902SRodney W. Grimesif a ``:'' is present, or days if a ``d'' is present. 6686641d8fSPaul TrainaLogin time is displayed as the dayname if less than 6 days, else month, day; 6786641d8fSPaul Trainahours and minutes, unless more than six months ago, in which case the year 6886641d8fSPaul Trainais displayed rather than the hours and minutes. 699b50d902SRodney W. Grimes.Pp 709b50d902SRodney W. GrimesUnknown devices as well as nonexistent idle and login times are 719b50d902SRodney W. Grimesdisplayed as single asterisks. 729b50d902SRodney W. Grimes.Pp 7386641d8fSPaul Traina.It Fl h 7486641d8fSPaul TrainaWhen used in conjunction with the 7586641d8fSPaul Traina.Fl s 7686641d8fSPaul Trainaoption, the name of the remote host is displayed instead of the office 7786641d8fSPaul Trainalocation and office phone. 7886641d8fSPaul Traina.Pp 7986641d8fSPaul Traina.It Fl o 8086641d8fSPaul TrainaWhen used in conjunction with the 8186641d8fSPaul Traina.Fl s 8286641d8fSPaul Trainaoption, the office location and office phone information is displayed 8386641d8fSPaul Trainainstead of the name of the remote host. 8486641d8fSPaul Traina.Pp 859b50d902SRodney W. Grimes.It Fl l 869b50d902SRodney W. GrimesProduces a multi-line format displaying all of the information 879b50d902SRodney W. Grimesdescribed for the 889b50d902SRodney W. Grimes.Fl s 899b50d902SRodney W. Grimesoption as well as the user's home directory, home phone number, login 9086641d8fSPaul Trainashell, mail status, and the contents of the files 919b50d902SRodney W. Grimes.Dq Pa .forward , 929b50d902SRodney W. Grimes.Dq Pa .plan 939b50d902SRodney W. Grimesand 949b50d902SRodney W. Grimes.Dq Pa .project 959b50d902SRodney W. Grimesfrom the user's home directory. 969b50d902SRodney W. Grimes.Pp 979b50d902SRodney W. GrimesIf idle time is at least a minute and less than a day, it is 989b50d902SRodney W. Grimespresented in the form ``hh:mm''. 999b50d902SRodney W. GrimesIdle times greater than a day are presented as ``d day[s]hh:mm''. 1009b50d902SRodney W. Grimes.Pp 1019b50d902SRodney W. GrimesPhone numbers specified as eleven digits are printed as ``+N-NNN-NNN-NNNN''. 1029b50d902SRodney W. GrimesNumbers specified as ten or seven digits are printed as the appropriate 1039b50d902SRodney W. Grimessubset of that string. 1049b50d902SRodney W. GrimesNumbers specified as five digits are printed as ``xN-NNNN''. 10586641d8fSPaul TrainaNumbers specified as four digits are printed as ``xNNNN''. 1069b50d902SRodney W. Grimes.Pp 1079b50d902SRodney W. GrimesIf write permission is denied to the device, the phrase ``(messages off)'' 1089b50d902SRodney W. Grimesis appended to the line containing the device name. 1099b50d902SRodney W. GrimesOne entry per user is displayed with the 1109b50d902SRodney W. Grimes.Fl l 1119b50d902SRodney W. Grimesoption; if a user is logged on multiple times, terminal information 1129b50d902SRodney W. Grimesis repeated once per login. 1139b50d902SRodney W. Grimes.Pp 11486641d8fSPaul TrainaMail status is shown as ``No Mail.'' if there is no mail at all, ``Mail 11586641d8fSPaul Trainalast read DDD MMM ## HH:MM YYYY (TZ)'' if the person has looked at their 11686641d8fSPaul Trainamailbox since new mail arriving, or ``New mail received ...'', ``Unread 11786641d8fSPaul Trainasince ...'' if they have new mail. 11886641d8fSPaul Traina.Pp 1199b50d902SRodney W. Grimes.It Fl p 1209b50d902SRodney W. GrimesPrevents 1219b50d902SRodney W. Grimesthe 1229b50d902SRodney W. Grimes.Fl l 1239b50d902SRodney W. Grimesoption of 1249b50d902SRodney W. Grimes.Nm finger 1259b50d902SRodney W. Grimesfrom displaying the contents of the 1269b50d902SRodney W. Grimes.Dq Pa .forward , 1279b50d902SRodney W. Grimes.Dq Pa .plan 1289b50d902SRodney W. Grimesand 1299b50d902SRodney W. Grimes.Dq Pa .project 1309b50d902SRodney W. Grimesfiles. 1319b50d902SRodney W. Grimes.It Fl m 1329b50d902SRodney W. GrimesPrevent matching of 1339b50d902SRodney W. Grimes.Ar user 1349b50d902SRodney W. Grimesnames. 1359b50d902SRodney W. Grimes.Ar User 1369b50d902SRodney W. Grimesis usually a login name; however, matching will also be done on the 1379b50d902SRodney W. Grimesusers' real names, unless the 1389b50d902SRodney W. Grimes.Fl m 1399b50d902SRodney W. Grimesoption is supplied. 1409b50d902SRodney W. GrimesAll name matching performed by 1419b50d902SRodney W. Grimes.Nm finger 1429b50d902SRodney W. Grimesis case insensitive. 14303801815SAndras Olah.Pp 14403801815SAndras Olah.It Fl T 14503801815SAndras OlahDisable the use of T/TCP (see 14603801815SAndras Olah.Xr ttcp 4 ). 14703801815SAndras OlahThis option is needed to finger hosts with a broken TCP implementation. 1489b50d902SRodney W. Grimes.El 1499b50d902SRodney W. Grimes.Pp 1509b50d902SRodney W. GrimesIf no options are specified, 1519b50d902SRodney W. Grimes.Nm finger 1529b50d902SRodney W. Grimesdefaults to the 1539b50d902SRodney W. Grimes.Fl l 1549b50d902SRodney W. Grimesstyle output if operands are provided, otherwise to the 1559b50d902SRodney W. Grimes.Fl s 1569b50d902SRodney W. Grimesstyle. 1579b50d902SRodney W. GrimesNote that some fields may be missing, in either format, if information 1589b50d902SRodney W. Grimesis not available for them. 1599b50d902SRodney W. Grimes.Pp 1609b50d902SRodney W. GrimesIf no arguments are specified, 1619b50d902SRodney W. Grimes.Nm finger 1629b50d902SRodney W. Grimeswill print an entry for each user currently logged into the system. 1639b50d902SRodney W. Grimes.Pp 1649b50d902SRodney W. Grimes.Nm Finger 1659b50d902SRodney W. Grimesmay be used to look up users on a remote machine. 1669b50d902SRodney W. GrimesThe format is to specify a 1679b50d902SRodney W. Grimes.Ar user 1689b50d902SRodney W. Grimesas 1699b50d902SRodney W. Grimes.Dq Li user@host , 1709b50d902SRodney W. Grimesor 1719b50d902SRodney W. Grimes.Dq Li @host , 1729b50d902SRodney W. Grimeswhere the default output 1739b50d902SRodney W. Grimesformat for the former is the 1749b50d902SRodney W. Grimes.Fl l 1759b50d902SRodney W. Grimesstyle, and the default output format for the latter is the 1769b50d902SRodney W. Grimes.Fl s 1779b50d902SRodney W. Grimesstyle. 1789b50d902SRodney W. GrimesThe 1799b50d902SRodney W. Grimes.Fl l 1809b50d902SRodney W. Grimesoption is the only option that may be passed to a remote machine. 1818829c73eSJordan K. Hubbard.Pp 1828829c73eSJordan K. HubbardIf the file 1838829c73eSJordan K. Hubbard.Dq Pa .nofinger 1848829c73eSJordan K. Hubbardexists in the user's home directory, 1858829c73eSJordan K. Hubbard.Nm finger 1868829c73eSJordan K. Hubbardbehaves as if the user in question does not exist. 18759be6088SPaul Traina.Sh ENVIRONMENT 18859be6088SPaul Traina.Nm Finger 18959be6088SPaul Trainautilizes the following environment variable, if it exists: 19059be6088SPaul Traina.Bl -tag -width Fl 19159be6088SPaul Traina.It Ev FINGER 19259be6088SPaul TrainaThis variable may be set with favored options to 19359be6088SPaul Traina.Nm finger . 19459be6088SPaul Traina.El 195df3f5d9dSPeter Wemm.Sh FILES 196df3f5d9dSPeter Wemm.Bl -tag -width /var/log/lastlog -compact 197df3f5d9dSPeter Wemm.It Pa /var/log/lastlog 198df3f5d9dSPeter Wemmlast login data base 199df3f5d9dSPeter Wemm.El 2009b50d902SRodney W. Grimes.Sh SEE ALSO 2019b50d902SRodney W. Grimes.Xr chpass 1 , 2029b50d902SRodney W. Grimes.Xr w 1 , 2039b50d902SRodney W. Grimes.Xr who 1 , 20403801815SAndras Olah.Xr ttcp 4 . 2059b50d902SRodney W. Grimes.Sh HISTORY 2069b50d902SRodney W. GrimesThe 2079b50d902SRodney W. Grimes.Nm finger 2089b50d902SRodney W. Grimescommand appeared in 2099b50d902SRodney W. Grimes.Bx 3.0 . 210