who – show who is logged in

who shows who is currently logged in to the system.
Synopsis
who [OPTIONS] [FILE]
Examples
Basic output
$ who
greys pts/0 2025-01-29 10:00 (192.168.1.50)
admin pts/1 2025-01-29 13:45 (192.168.1.51)
Show current user info
$ who am i
greys pts/0 2025-01-29 10:00 (192.168.1.50)
All information
$ who -a
Show boot time
$ who -b
system boot 2025-01-22 10:45
Count users
$ who -q
greys admin
# users=2
Show run level
$ who -r
run-level 5 2025-01-22 10:45
Show dead processes
$ who -d
Output Format
greys pts/0 2025-01-29 10:00 (192.168.1.50)
│ │ │ │
│ │ │ └─ Remote host
│ │ └─ Login time
│ └─ Terminal
└─ Username
who vs w vs users
| Command | Output |
|---|---|
who | Users, terminals, login times |
w | Users + what they’re doing + system load |
users | Just usernames on one line |
$ users
admin greys greys
Tips
- who am i: Shows your original login, even after
su - Use w for more info: Shows what users are doing
- Check /var/run/utmp: who reads login records from here
See Also
Related Commands
- w — Who + what they’re doing
- users — List usernames only
- last — Login history
- whoami — Current effective user






