Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (v - z) who(1)
NAME
who - Identifies users currently logged in
SYNOPSIS
who [-mTu]
The who command displays information about users on the local system.
FLAGS
-m Displays information about the current terminal.
-T Displays the status of the terminal line and indicates who can write to that terminal as
follows:
+ Writable by anyone.
- Writable only by the superuser or its owner.
? Bad line encountered.
-u Displays the username, terminal name, login time (time login shell was started), line
activity, and process-ID of each current user. The LC_TIME environment variable
controls the format of the login time.
DESCRIPTION
The who command displays the following information for the users and/or processes you specify:
• User name
• Terminal name
• Date
• Time of login
The general output format of the who command is as follows:
user [state] line time [activity][process_ID]
where:
• The user argument specifies the user’s login name.
• The state argument indicates whether or not the line is readable by everyone (see the -T
flag).
• The line argument specifies the name of the TELNET line as found in the /dev directory.
• The time argument specifies the time that user logged in.
• The activity argument specifies the hours and minutes since activity last occurred on that
user’s line. A . (dot) here indicates line activity within the last minute. If the line has
been quiet more than 24 hours or has not been used since the last system start-up, the
entry is marked as old.
• The process_ID argument specifies the process-ID of the user’s shell.
Note that who only identifies users on the local node.
527188-021 Hewlett-Packard Company 10−29