The who command displays information about all users who are currently logged on the local system. It lists such information as the user's name, terminal type, logon time and elapsed time since the last activity on the terminal line.

When the -H option is used it will display headings for each of the columns of information.

The -q option can be used to display a quick summary of the number of users that are logged on without giving any details.

Command Format

who [option(s)]

Example

$ who

chuck console Oct 29 10:30

sally pts/4 Oct 24 10:36 (10.10.10.35)

$

Here is what it would look like with the -H option:

$ who -H

NAME    LINE TIME
chuck console Oct 29 10:30
sally pts/4
Oct 24 10:36(10.10.10.35)
$    

The -q option displays only a summary:

$ Who -q

chuck sally

# users=2

$