w - Show who is logged on and what they are doing

syntax
$ w [options] [username]

w command without options
$ w

To Display the Short Format
$ w -s

To List the w Command Output Without Printing the Header
$ w -h

To ignore usernames when calculating the current process and CPU times
$ w -u

To Display the IP Address
$ w -i

To Display in Old Style
$ w -o 

To show remote hostname field
$ w -f

To print help options
$ w --help



regards,
T.Dhanasekar