w
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. |