BSD 1 development
[unix-history] / man6 / whoison.6
CommitLineData
0ddd34f3
BJ
1.th WHOISON VI 8/24/77
2.sh NAME
3whoison \- give information about who is on the system
4.sh SYNOPSIS
5.bd whoison
6[
7.bd \-
8] [
9.bd \-pufnds
10] [
11name ...
12] [
13terminal ...
14] [
15location
16]
17.sh DESCRIPTION
18.it Whoison
19is a program which summarizes the current users of a large system quickly
20and sensibly.
21Options are:
22.s3
23.dt
24.st
25 \fB\-p\fR list people
26.br
27 \fB\-u\fR break down used teletypes
28.br
29 \fB\-f\fR break down free teletypes
30.br
31 \fB\-n\fR break down unavailable teletypes
32.br
33 \fB\-d\fR give ``classwise'' distribution of users
34.br
35 \fB\-s\fR summarize used and free
36.s3
37The default is
38.bd \-pdfs.
39The option
40.bd \-
41only turns all information on.
42.s3
43.it Whoison
44uses a data file
45.it winfo
46to break the teletypes on the system into classes,
47to give patterns, ala
48.it glob
49(VIII),
50for grouping users into
51.it classes,
52and to map users who are
53.it su'd
54to the character names of super-users.
55.s3
56A typical
57.it winfo
58file would be
59.nf
60
61 evans:ABCDEFGHIJKLQRST
62 cory:abcdefghijklmnopvwyz+-,
63 phone:01234
64 11/10:679
65 private:58hq.=_%MNOPUVWX#!
66
67 guest:guest*\||\|lhs*
68 cc:cc\-*
69
70 root:0:0
71 jeff:11:10
72 chuck:25:10
73 bill:37:10
74 ken:12:10
75.fi
76.i0
77.s3
78The first group of lines, up to a null line, gives the distribution
79of the teletypes, given by the name of the class followed by a `:'
80and then the teletypes in the group.
81The second group gives the
82.it class
83names, followed by a `:' and then patterns to match the class names
84separated by `|' characters.
85Here any user whose login name begins with `guest' or `lhs'
86is considered to be a guest.
87Finally, the rest of the file is a miniature
88.it /etc/passwd
89to speed up user name searches.
90.s3
91If non-flag arguments are given on the command line, these are used instead of
92the patterns here, and only users specified by these arguments are given.
93The effect is that of specifying the option
94.bd \-p
95for these people only,
96or if the pattern is a single character teletype name,
97for the person on that terminal only.
98The pattern may also be a location name, i.e.
99`evans' in the example above.
100Thus `whoison evans' will give the names of the users on the `evans'
101terminals.
102.s3
103A typical output for the Cory System with this data base would be
104.s3
105.nf
106 broderse on c, conn on I and J, csgsa on L, devel on h, englar on 1,
107 guest on R, jeff on 8, joyce on C and D, kaarto on o (as root), mosher on T,
108 root on 5 (as pascal), so on -
109 15 used (1 guest), 45 free (8 evans, 19 cory, 4 phone, 3 11/10, 11 private)
110.fi
111.i0
112.sh FILES
113.dt
114/etc/winfo data base
115.br
116/etc/utmp who data base
117.br
118/etc/ttys tty on/off information
119.sh SEE\ ALSO
120last (VI), sess (VI)
121.sh AUTHOR
122William Joy
123.sh BUGS