Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ w(C) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

date(C)

finger(C)

ps(C)

uptime(C)

who(C)

whodo(C)



     W(C)                     XENIX System V                      W(C)



     Name
          w - Displays information about who is on the system and what
          they are doing.

     Syntax
          w [-hlqtw] [-n namelist] [-s swapdev] [-c corefile] [-u
          utmpfile] [users...]

     Description
          w prints a summary of the current activity on the system,
          including what each user is doing.  The heading line shows
          the current time of day, how long the system has been up,
          the number of users logged onto the system, and load
          averages.  Load averages are the number of processes in the
          run queue averaged over 1, 5, and 15 minutes.

          The options are:

          -h   Don't print the heading or title lines.

          -l   Long format (default):  For each user, w outputs the
               user's login name, the terminal or pseudo terminal the
               user is currently using, when the user logged onto the
               system, the number of minutes the user has been idle
               (how much time has expired since the user last typed
               anything), the CPU time used by all processes and their
               children attached to the terminal, the CPU time used by
               the currently active process, and the name and
               arguments of the currently active process.

          -q
          Quick format:  For each user, w outputs the user's login
          name, the terminal or pseudo terminal the user is currently
          using, the number of minutes the user has been idle, and the
          name of the currently active process.

          -t
          Only the heading line is output (equivalent to uptime(C)).

          -w
          Both the heading line and the summary of users is output.

          -nnamelist
          The argument is taken as the name of an alternate namelist
          ( /xenix is the default).

          -sswapdev
          Uses the file swapdev in place of /dev/swap.  This is useful
          when examining a corefile.

          -ccorefile
          Uses the file corefile in place of /dev/kmem.



     Page 1                                           (printed 2/7/91)





     W(C)                     XENIX System V                      W(C)



          -uutmpfile
          The file utmpfile is used instead of /etc/utmp as a record
          of who is currently logged in.

          If any users are given, the user summary is restricted to
          reporting on those users.

     Files
          /xenix
          /etc/utmp
          /dev/kmem
          /dev/swap

     See Also
          date(C), finger(C), ps(C), uptime(C), who(C), whodo(C)

     Notes
          The ``currently active process'' is only an approximation
          and is not always correct.  Pipelines can produce strange
          results, as can some background processes.  If w is
          completely unable to guess at the currently active process,
          it prints ``-.''

































     Page 2                                           (printed 2/7/91)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026