commands
who — inspect recorded login sessions
Reports login records where available. No output need not mean no users or processes exist. -q prints recorded names and count; -H adds headings. Treat session output as private. Example assumes a fresh account lab fixture; VM-only examples require explicit authorization.
Formal Syntax & Structure
linux syntaxlinux
who [OPTION] [FILE]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -q | option | summary count |
| -H | option | headings |
| FILE | operand | optional alternate session record |
Return Value
exit status and output
Reports login records where available. No output need not mean no users or processes exist. -q prints recorded names and count; -H adds headings. Treat session output as private.
Working Example
Example Snippetlinux
who