trivial pathname changes
[unix-history] / usr / src / usr.bin / finger / finger.1
CommitLineData
6b8910b8 1.\" Copyright (c) 1989 The Regents of the University of California.
a46f6f3d 2.\" All rights reserved.
b2575e31 3.\"
a46f6f3d
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
6b8910b8 14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
a46f6f3d 15.\"
f156ea40 16.\" @(#)finger.1 6.9 (Berkeley) %G%
b2575e31 17.\"
efb2a383 18.TH FINGER 1 ""
b2575e31
KM
19.UC 4
20.SH NAME
21finger \- user information lookup program
22.SH SYNOPSIS
23.B finger
24[
6b8910b8
KB
25.B -lmsp
26] [user [@host] ...]
b2575e31 27.SH DESCRIPTION
6b8910b8 28The
b2575e31 29.I finger
6b8910b8
KB
30command has two basic output formats providing essentially the same
31information.
b2575e31 32.PP
6b8910b8
KB
33The
34.I -s
35option of
b2575e31 36.I finger
6b8910b8
KB
37displays the user's login name, real name, terminal name and write
38status (as a ``*'' after the terminal name if write permission is
39denied), idle time, login time, office location and office phone
40number.
b2575e31 41.PP
6b8910b8
KB
42Idle time is in minutes if it is a single integer, hours and minutes
43if a ``:'' is present, or days if a ``d'' is present.
44Login time is displayed as month, day, hours and minutes, unless
45more than six months ago, in which case the year is displayed rather
46than the hours and minutes.
2f96ea34 47.PP
676398e3
KB
48Unknown devices as well as nonexistent idle and login times are
49displayed as single asterisks.
50.PP
6b8910b8
KB
51The
52.I -l
53option produces a multi-line format displaying all of the information
54described for the
55.I -s
f156ea40
KB
56option as well as the user's home directory, home phone number, login
57shell, and the contents of the files
6b8910b8
KB
58.I ``.plan''
59and
60.I ``.project''
61from the user's home directory.
62.PP
63If idle time is at least a minute and less than a day, it is
64presented in the form ``hh:mm''.
65Idle times greater than a day are presented as ``d day[s] hh:mm''.
66.PP
f156ea40
KB
67Phone numbers specified as eleven digits are printed as ``+N-NNN-NNN-NNNN''.
68Numbers specified as ten or seven digits are printed as the appropriate
69subset of that string.
70Numbers specified as five digits are printed as ``xN-NNNN''.
71.PP
72If write permission is denied to the device, the phrase ``(messages off)''
73is appended to the line containing the device name.
6b8910b8
KB
74One entry per user is displayed with the
75.IR -l
76option; if a user is logged on multiple times, terminal information
77is repeated once per login.
78.PP
6b8910b8
KB
79The
80.I -p
81option prevents
82the
83.I -l
84option of
85.I finger
86from displaying the contents of the ``.plan'' and ``.project''
87files.
88.PP
89Note that some fields may be missing, in either format, if information
90is not available for them.
b2575e31 91.PP
6b8910b8
KB
92If no operands are specified,
93.I finger
94will print an entry for each user currently logged into the system.
95If no options are specified,
2f96ea34 96.I finger
6b8910b8
KB
97defaults to the
98.I -l
99style output if operands are provided, otherwise to the
100.I -s
101style.
2f96ea34 102.PP
6b8910b8
KB
103.I User
104is usually a login name; however, matching will also be done on the
105users' real names, unless the
106.I -m
107option is supplied.
108All name matching performed by
b2575e31 109.I finger
6b8910b8
KB
110is case insensitive.
111.PP
112.I Finger
113may be used to look up users on a remote machine.
114The format is to specify a
115.I user
116as ``user@host'', or ``@host'', where the default output
117format for the former is the
118.I -l
119style, and the default output format for the latter is the
120.IR -s
121style.
122The
123.I -l
124option is the only option that may be passed to a remote machine.
125.SH "SEE ALSO"
126chpass(1), w(1), who(1), getpwent(3)