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