Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ w(C) — OpenDesktop 1.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

date(C)

finger(C)

ps(C)

uptime(C)

who(C)

whodo(C)


     W(C)                                 UNIX System V



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


     Syntax
          w  [-hlqtw]  [-n  namelist]  [-s  swapdev]   [-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,
          and  the number of users logged onto the system.  On systems
          that maintain the necessary  data,  the  heading  line  also
          shows  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
          ( /unix is the default).

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

          -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
          /unix
          /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 ``-.''


     Authorization
          The behavior of this utility is affected  by  assignment  of
          the  mem authorization, which is usually reserved for system
          administrators.  If you do not have this authorization,  the
          output  will  be  restricted  to  data  pertaining  to  your
          activities only.  Refer to the ``Using  a  Trusted  System''
          chapter of the User's Guide for more details.


     (printed 2/15/90)                                       W(C)





















































































































































































































































































































































































































































































































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