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.


Usage:

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




Command Line Options:

-a
same as -b -d --login -p -r -t -T -u
who -a ...
-b
time of last system boot
who -b ...
-d
print dead processes
who -d ...
-H
print line of column headings
who -H ...
-l
print system login processes
who -l ...
--lookup
attempt to canonicalize hostnames via DNS
who --lookup ...
-m
only hostname and user associated with stdin
who -m ...
-p
print active processes spawned by init
who -p ...
-q
all login names and number of users logged on
who -q ...
-r
print current runlevel
who -r ...
-s
print only name, line, and time (default)
who -s ...
-t
print last system clock change
who -t ...
-T
add user's message status as +, - or ?
who -T ...
-u
list users logged in
who -u ...
--help
display this help and exit
who --help ...
--version
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: <http://www.gnu.org/software/coreutils/>Report who translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>.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 ...