When to use who
Use who to inspect login records while checking who is connected to a server. Its view depends on system accounting and should not be treated as a complete security inventory of every process or connection.
Syntax
who [PARAMETERS]Square brackets mark optional arguments; an ellipsis means repetition. Replace example file names, user names and server addresses with your own values.
Common options and arguments
Usage examples
Show logged-in sessions
whoRecorded login sessions are listed with their terminal and time information.
Show sessions with column headings
who -HColumn headings are included to clarify the displayed fields.
Show the last system boot time
who -bThe recorded system boot time is shown.
Notes and limitations
- The data source is usually utmp; containers and thin systems may not maintain such a database.
- The output is not a complete list of all network connections or processes.
Common questions and troubleshooting
Why is an SSH connection missing from who?
Noninteractive connections and some environments do not create the same login records. Use process and service logs for the relevant investigation.
Does who show every user running a process?
No. Login accounting and process ownership are different sources. Use process tools when you need running-task information.
Further help
Options vary by version and distribution. Check the installed documentation with this command: man who.