Linux "who" Command Line Options and Examples
show who is logged on

Print information about users who are currently logged in. -a, --all same as -b -d --login -p -r -t -T -u -b, --boot time of last system boot -d, --dead print dead processes -H, --heading print line of column headings --ips print ips instead of hostnames.


who [OPTION]... [ FILE | ARG1 ARG2 ]

Command Line Options:

same as -b -d --login -p -r -t -T -u
who -a ...
time of last system boot
who -b ...
print dead processes
who -d ...
print line of column headings
who -H ...
print system login processes
who -l ...
attempt to canonicalize hostnames via DNS
who --lookup ...
only hostname and user associated with stdin
who -m ...
print active processes spawned by init
who -p ...
all login names and number of users logged on
who -q ...
print current runlevel
who -r ...
print only name, line, and time (default)
who -s ...
print last system clock change
who -t ...
add user's message status as +, - or ?
who -T ...
list users logged in
who -u ...
display this help and exit
who --help ...
output version information and exitIf FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. If ARG1 ARG2 given, -m pre‐sumed: 'am i' or 'mom likes' are usual.AUTHORWritten by Joseph Arceneaux, David MacKenzie, and Michael Stone.REPORTING BUGSGNU coreutils online help: <>Report who translation bugs to <>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
who --version ...