MPE/iX Shell and Utilities Reference Manual, Vol 2

who(1) MPE/iX Shell and Utilities who(1)
NAME
who — display information about current users
SYNOPSIS
who [–AabdilmprsTtuw] file
who am i
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function exactly as this man page de-
scribes. For details, see the MPE/iX NOTES section at the end of this man page.
The who command displays information about users that are currently logged into the system.
By default, the output contains the user’s login name, terminal name, and the time at which
the user logged in. Normally, who consults the file /etc/utmp for information, but you can
use the file argument to specify another accounting file (such as /etc/wtmp).
When called as:
who am i
who displays your login name, terminal, and login time.
Options
who accepts the following options:
–A displays all accounting entries.
–a displays all types of entries. This is equivalent to specifying –AbdilprTtuw.
–b displays all entries written at system boot time.
–d displays entries produced on the death of a process spawned from /etc/init.
–i displays idle time for users.
–l displays logged-out user entries.
–m displays information about current terminal only.
–p displays entries for processes spawned from /etc/init.
–r displays all run-level change entries.
–s displays only the three fields user name, terminal, and time of entry.
–T displays the state of each terminal as a plus sign (+) if the terminal allows write ac-
cess to other users, and a minus sign () if write access is denied. who displays a
question mark (?) if the write access cannot be determined.
1-700 Commands and Utilities