|
|
1.1 root 1: .\" Copyright (c) 1990 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)who.1 6.3 (Berkeley) 6/24/90
6: .\"
7: .TH WHO 1 "%Q"
8: .AT 3
9: .SH NAME
10: who \- who is on the system
11: .SH SYNOPSIS
12: .B who
13: [ who-file ] [
14: .B "am I"
15: ]
16: .SH DESCRIPTION
17: \fIWho,\fP without any argument, reads the /var/run/utmp file,
18: and lists the login name, terminal name, and login time for each
19: user currently logged into the system. If a single argument is
20: given, \fIwho\fP uses that file instead of /var/run/utmp. Typically,
21: that file will be /var/log/wtmp, which contains a record of all
22: the logins, logouts, crashes, shutdowns and time changes since it
23: was created. In either case, each login will be listed with the
24: user name, the terminal name (with "/dev/" suppressed), login date
25: and time, and, if applicable, the host logged in from.
26: .PP
27: If /var/log/wtmp is being used as the file, the user name may be empty
28: or one of the special characters '|', '}' and '~'. Logouts produce
29: an output line without any user name. For more information on the
30: special characters, see utmp(5).
31: .PP
32: With two arguments, as in `who am I' (and also `who are you'),
33: \fIwho\fP tells you who you are logged in as.
34: .SH FILES
35: .DT
36: /var/run/utmp
37: .br
38: /var/log/wtmp
39: .SH "SEE ALSO"
40: last(1), users(1), getuid(2), utmp(5)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.