BSD 2 development
[unix-history] / man / finger.u
CommitLineData
f0a0704f
EC
1.TH FINGER UCB 2/24/79 UCB
2.SH NAME
3finger \- user information lookup program
4.SH SYNOPSIS
5.B finger
6[
7.B \-bfhilmpqsw
8] login ...
9.SH DESCRIPTION
10.I Finger
11lists the login name, full name, terminal name and write status
12(as a '*' before the terminal name if write permission is denied),
13idle time, login time, and office location and phone number
14(if they are known) for each current UNIX user,
15examining the /etc/utmp, /etc/passwd, and /usr/adm/lastlog
16files to obtain its information.
17.PP
18.I Finger
19takes control arguments, preceded by a dash, followed by an
20optional list of login names. With no list of login names,
21the list of users currently logged on is used.
22.PP
23.I Finger
24has three output modes \- quick, short and long. In quick mode, data
25is only retrieved from /etc/utmp, providing only login name, terminal name,
26and login time in a format similar to
27.IR who (1).
28In short mode,
29.I finger
30gives a one line per user output containing login name, full name,
31terminal name and write status (a '*' before the terminal
32name indicates write permission is denied), idle time (the time since
33the user last typed anything meaningful), login time, and office location
34and phone number (if the user is logged in on a dialup, her home phone
35number is printed instead of office and office phone).
36Any items not found are omitted. The format for the
37idle time is minutes, if it is a single integer, hours and minutes if a ':'
38is present, or days and hours if a 'd' is present. Long mode causes
39.I finger
40to print all the information that short mode gives in a multi-line,
41easy to read format. In addition, it also prints the users home
42directory and login shell, and, if a file .plan exists in her home
43directory, it is printed in its entirety; if a file .project exits in her
44home directory its first line is printed.
45.PP
46The control arguments to
47.I finger
48have the following effect:
49.TP
50.B \-b
51When doing long format output, suppress the printing of the home
52directory and shell fields.
53.TP
54.B \-f
55Suppress the printing of the header line when doing quick or short style
56outputs.
57.TP
58.B \-h
59Suppress the printing of .project files when doing long style outputs.
60.TP
61.B \-i
62Do a quick style output, but also lookup idle times and terminal status.
63.TP
64.B \-l
65Force long style format; this option only has effect if no login name list
66is given (since it is the default if a list is given).
67.TP
68.B \-m
69Instead of just comparing the listed names with all login names, the "-m"
70option also forces comparison with the user's real names stored in the gecos
71field of /etc/passwd. This allows you, for example, to find all users
72that have a first name of ``bill'' or a last name of ``cooper'', for example.
73.TP
74.B \-p
75Suppress the printing of .plan files when doing long style outputs.
76.TP
77.B \-q
78Force quick style outputs.
79.TP
80.B \-s
81Force short style outputs; this option only has effect if a name list is
82given (since it is the default if none is given).
83.TP
84.B \-w
85Decrease the width of short style outputs (by removing the name field) for
86narrow displays.
87.PP
88.I Finger
89is smart about a user being logged in more than once, and will do separate
90lookups for each terminal on which a user is logged in.
91.PP
92The only problem with
93.I finger
94is one of unportability; the source of the information
95.I finger
96uses is the gecos field of /etc/passwd, which UCB VAX/UNIX
97uses for comment information on the user.
98.SH FILES
99.DT
100/etc/utmp who file
101.br
102/etc/passwd for users names, offices, phones, directories and shells
103.br
104/usr/adm/lastlog last login times
105.br
106~/.plan plans
107.br
108~/.project projects
109.SH "SEE ALSO"
110who(1)
111.SH BUGS
112/usr/adm/lastlog is a local addition at UCB. If no equivalent is present
113then finger would have to look backwards through /usr/adm/wtmp, which
114would be very slow.
115.SH AUTHOR
116Earl T. Cohen