| WHO(1) | General Commands Manual | WHO(1) |
who — display who
is logged in
who |
[-abdHlmqrsTtuv]
[file] |
who |
am i |
The who utility displays a list of all
users currently logged on, showing for each user the login name, tty name,
the date and time of login, and hostname if not local.
Available options:
-a-bdlprTtuv.-b-d-H-l-mwho am i.-p-q-rd
(DEATH)s
(SINGLE_USER)r
(RUNCOM)t
(READ_TTYS)m
(MULTI_USER)T
(CLEAN_TTYS)c
(CATATONIA)-s-T-t-u-v-u, this switch can be used to also printed
process termination signals, process exit status, session id for windowing
and the type of the entry, see documentation of ut_type in
getutxent(3).who gathers information from the file
/var/run/utmpx. An alternative
file may be specified which is usually
/var/log/wtmpx (or
/var/log/wtmp, or
/var/log/wtmpx.[0-6] or
/var/log/wtmp.[0-6] depending on site policy as
wtmpx can grow quite large and daily versions may
or may not be kept around after compression by
ac(8)). The
wtmpx and wtmp file
contains a record of every login, logout, crash, shutdown and date change
since wtmpx and wtmp were
last truncated or created.If /var/log/wtmpx or /var/log/wtmp are being used as the file, the user name may be empty or one of the special characters '|', '}' and '~'. Logouts produce an output line without any user name. For more information on the special characters, see utmp(5).
The who utility is expected to conform to
IEEE Std 1003.2-1992 (“POSIX.2”).
A who utility appeared in
Version 1 AT&T UNIX:
https://www.bell-labs.com/usr/dmr/www/man14.pdf
| September 1, 2019 | NetBSD 11.0 |