|
|
1.1 root 1: .TH WHO 1
2: .CT 1 comm_users sa_mortals
3: .SH NAME
4: who, whois, last \- who is or was on the system
5: .SH SYNOPSIS
6: .B who
7: [
8: .B -i
9: ]
10: [
11: .I who-file
12: ]
13: .PP
14: .B who am i
15: .PP
16: .B whois
17: .I username
18: .PP
19: .B last
20: [
21: .B -f
22: .I who-file
23: ]
24: [
25: .I userid ...
26: ]
27: [
28: .I terminal
29: ]
30: .SH DESCRIPTION
31: .I Who,
32: without an argument,
33: lists the login name, terminal name, and login time
34: for each current user.
35: With the
36: .B -i
37: option, the report includes the number of minutes
38: that the user's terminal has been idle.
39: .PP
40: With two arguments,
41: as in
42: .LR "who am i" ,
43: .I who
44: tells who you are logged in as.
45: .PP
46: Without an argument,
47: .I who
48: examines the
49: .F /etc/utmp
50: file to obtain its information.
51: If a file is given, that file is examined.
52: Typically the given file will be
53: .FR /usr/adm/wtmp ,
54: which contains a record of all the logins since it
55: was created.
56: Then
57: .I who
58: lists
59: logins, logouts, and crashes since the creation of
60: the wtmp file.
61: Each login is listed with user name,
62: terminal name (with
63: .L /dev/
64: suppressed),
65: and date and time.
66: When an argument is given, logouts produce a similar line without a user name.
67: Reboots produce a line with
68: .L x
69: in the place of the device name,
70: and a fossil time indicative of when the system went down.
71: .PP
72: .I Whois
73: consults administrative files to identify the
74: .I username.
75: (Actually,
76: .I whois
77: uses
78: .IR grep
79: and can locate information by any useful key, such
80: as real name or telephone number.)
81: .PP
82: .I Last
83: reports logins and logouts in reverse chronological order.
84: Optional arguments restrict attention to selected userids or
85: terminals.
86: Terminals
87: .BR tty0 ", " tty1 ", ..."
88: may be abbreviated
89: .BR 0 ", " 1 ", ..."
90: .PP
91: By default,
92: .I last
93: examines the list of logins and logouts in
94: .FR /usr/adm/wtmp ;
95: option
96: .B -f
97: specifies a different file.
98: .PP
99: .I Last
100: reports userid, terminal,
101: time on, and time off for all users, or for selected
102: .IR userids.
103: A pseudo-user,
104: .LR reboot ,
105: is logged in at reboots of the system.
106: .PP
107: Upon interrupt,
108: .I last
109: tells how far back it has looked;
110: upon quit
111: .RB (control- \e )
112: it tells how far and keeps on looking.
113: .SH EXAMPLES
114: .TP
115: .B last reboot
116: Report recent system outages.
117: .SH FILES
118: .F /etc/utmp
119: .br
120: .F /usr/adm/wtmp
121: .br
122: .F /usr/adm/usrlist
123: .br
124: .F /etc/passwd
125: .SH "SEE ALSO"
126: .IR getuid (1),
127: .IR getuid (2),
128: .IR utmp (5),
129: .IR ac (8),
130: .IR tty (1),
131: .IR vwhois
132: in
133: .IR vismon (9.1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.