Commit | Line | Data |
---|---|---|
b0a27b14 BJ |
1 | .TH WHO 1 |
2 | .SH NAME | |
3 | who \- who is on the system | |
4 | .SH SYNOPSIS | |
5 | .B who | |
6 | [ who-file ] [ | |
7 | .B "am I" | |
8 | ] | |
9 | .SH DESCRIPTION | |
10 | .I Who, | |
11 | without an argument, | |
12 | lists the login name, terminal name, and login time | |
13 | for each current UNIX user. | |
14 | .PP | |
15 | Without an argument, | |
16 | .I who | |
17 | examines the /etc/utmp | |
18 | file to obtain its information. | |
19 | If a file is given, that file is examined. | |
20 | Typically the given file will be /usr/adm/wtmp, | |
21 | which contains a record of all the logins since it | |
22 | was created. | |
23 | Then | |
24 | .I who | |
25 | lists | |
26 | logins, logouts, and crashes since the creation of | |
27 | the wtmp file. | |
28 | Each login is listed with user name, | |
29 | terminal name (with `/dev/' | |
30 | suppressed), | |
31 | and date and time. | |
32 | When an argument is given, logouts produce a similar line without a user name. | |
33 | Reboots produce a line with `x' in the place of the device name, | |
34 | and a fossil time indicative of when the system went down. | |
35 | .PP | |
36 | With two arguments, | |
37 | as in `who am I' (and also `who are you'), | |
38 | .I who | |
39 | tells who you are logged in as. | |
40 | .SH FILES | |
41 | /etc/utmp | |
42 | .SH "SEE ALSO" | |
43 | getuid(2), utmp(5) |