w - Show who is logged on and what they are doing.
Display who is currently logged in and what they are doing:
w
Display information without heading:
w -h
Ignore usernames:
w -u
Display short version hiding login time, JCPU or PCPU times:
w -s
Display logged users without FROM field:
w -f
Display information about specific logged user:
w james
Display help and exit:
w --help
Display version information and exit:
w -V