Commit | Line | Data |
---|---|---|
362b077f C |
1 | |
2 | ||
3 | ||
4 | WHO(1) UNIX Programmer's Manual WHO(1) | |
5 | ||
6 | ||
7 | ||
8 | N\bNA\bAM\bME\bE | |
9 | who - who is on the system | |
10 | ||
11 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
12 | w\bwh\bho\bo [ who-file ] [ a\bam\bm I\bI ] | |
13 | ||
14 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
15 | _\bW_\bh_\bo, without any argument, reads the /etc/utmp file, and | |
16 | lists the login name, terminal name, and login time for each | |
17 | user currently logged into the system. If a single argument | |
18 | is given, _\bw_\bh_\bo uses that file instead of /etc/utmp. Typi- | |
19 | cally, that file will be /usr/adm/wtmp, which contains a | |
20 | record of all the logins, logouts, crashes, shutdowns and | |
21 | time changes since it was created. In either case, each | |
22 | login will be listed with the user name, the terminal name | |
23 | (with "/dev/" suppressed), login date and time, and, if | |
24 | applicable, the host logged in from. | |
25 | ||
26 | If /usr/adm/wtmp is being used as the file, the user name | |
27 | may be empty or one of the special characters '|', '}' and | |
28 | '~'. Logouts produce an output line without any user name. | |
29 | For more information on the special characters, see utmp(5). | |
30 | ||
31 | With two arguments, as in `who am I' (and also `who are | |
32 | you'), _\bw_\bh_\bo tells you who you are logged in as. | |
33 | ||
34 | F\bFI\bIL\bLE\bES\bS | |
35 | /etc/utmp | |
36 | /usr/adm/wtmp | |
37 | ||
38 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
39 | last(1), users(1), getuid(2), utmp(5) | |
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | Printed 7/9/88 December 10, 1986 1 | |
64 | ||
65 | ||
66 |