w [options] [user]Print summaries of system usage, currently logged-in users, and what they are doing. w is essentially a combination of uptime, who, and ps -a. Display output for one user by specifying user.
-hSuppress headings and uptime information.
-lDisplay in long format (the default).
-sDisplay in short format.
-uPrint just the heading line. Equivalent to uptime. Solaris only.
-wSame as -1. Solaris only.