Learn the Linux Command - who

Businessman working on laptop in startup office
Thomas Barwick/Stone/Getty Images


who - show who is logged on  


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



same as -b -d --login -p -r -t -T -u


time of last system boot


print dead processes


print line of column headings


add idle time as HOURS:MINUTES, . or old (deprecated, use -u)


print system login processes (equivalent to SUS -l)


attempt to canonicalize hostnames via DNS (-l is deprecated, use --lookup)


only hostname and user associated with stdin


print active processes spawned by init


all login names and number of users logged on


print current runlevel


print only name, line, and time (default)


print last system clock change


add user's message status as +, - or ?


list users logged in


same as -T


same as -T


display this help and exit


output version information and exit

If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. If ARG1 ARG2 given, -m presumed: `am i' or `mom likes' are usual.  

See Also

The full documentation for who is maintained as a Texinfo manual. If the info and who programs are properly installed at your site, the command

info who

should give you access to the complete manual.

Important: Use the man command (% man) to see how a command is used on your particular computer.

Was this page helpful?