w
Show who is logged on and what they are doing. Print user login, TTY, remote host, login time, idle time, current process.
- Show logged-in users info:
w
- Show logged-in users info without a header:
w -h
- Show info about logged-in users, sorted by their idle time:
w -i