Name
w
Synopsis
w [options
] [user
]
Print summaries of system usage, currently logged-in users, and what those users are doing. w is essentially a combination of uptime, who, and ps -a. Display output for one user by specifying user.
Options
- -f
Toggle printing the from (remote hostname) field.
- -h
Suppress headings and uptime information.
- -s
Use the short format.
- -u
Ignore the username while figuring out the current process and CPU times.
- -V
Display version information.
File
- /var/run/utmp
List of users currently logged in.
Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.