Breadcrumbs 
Learning >> Documentation >> Other Users >> w
 
Recent News
We're No 1!
We've reached the top! (Of Google!)
[ more ]
Firefox 3 Download Day
Firefox 3 has been officially released and is looking to set a world record for the most downloaded piece of software in 24hrs.
[ more ]
SSL Renewed
SSL cert has been renewed by the admin team.
[ more ]
w
w

The w command prints out who's logged on and what they're doing.

$ w
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
cyan     pts/37   195.218.110.118  12:08    0.00s  0.15s  0.04s  w

From this you can see where I'm logged on from, what time I logged on, how long it has been since the system detected a keystroke, and what it is I'm doing (typing w, as you can see).

You can customise the output of w, for more information see the man page.

# the manual for w
man w

If you want to see the last few logins to the system, you can use the last command.