previous contents up next

Unix for Advanced Users

7. Viewing System Information

7.3.2 What are they doing? w

The w command prints system status information that is also printed by the uptime command, and it prints for each user's login the user name, tty, idle time, cumulative CPU time, CPU time assocated with the current process, and the name of the current process.

The w command output looks like this:

  4:31pm  up 14 day(s),  6:51,  7 users,  load average: 0.08, 0.07, 0.05
User     tty           login@  idle   JCPU   PCPU  what
kathy    pts/0         7Jun99  5:41   1:20      5  -tcsh
simon    pts/2         2:15pm  1:03                -tcsh
sam      pts/3         8:56am    33     49      1  ssh nirvana
mortimer pts/5         1:02pm    28   1:11      1  -bash
al       pts/6        Fri 1pm  5:46                sh
mortimer pts/7         9:23am            6         w
mortimer pts/10        9:28am                      -bash

On this system only mortimer has been active, and it is he who ran the w command.

previous contents up next