On Linux (Fedora 14), the "w" command says this:
[USERNAME@PC ~] w
23:51:32 up 13 min, 7 users, load average: 0,22, 0,42, 0,34
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
USERNAME tty1 :0 23:39 12:49 30.71s 0.08s pam: gdm-password
USERNAME pts/1 :0.0 23:39 9:39 0.01s 0.01s bash
USERNAME pts/0 :0.0 23:51 0.00s 0.02s 0.00s w
[USERNAME@PC ~]
Why are there 7 logged in users when it only lists 3?
w
, shame on me! – phunehehe Dec 27 '11 at 12:06last|grep 'still logged in'
say? – phemmer Dec 27 '11 at 19:09I skimmed through w.c and saw a few comments about the 'likely' need for a switch to show more info about invalid processes. Regardless on arch, ubuntu, centos, and suse I was only able to reproduce your output on one machine, ubuntu I think. w is a mashup of who, uname, uptime. Other than plain old intellectual curiosity, do you have a task to complete?
– bsd Dec 30 '11 at 17:33who
does it match? what about output fromusers
? – J. M. Becker Dec 31 '11 at 04:35