


      WWWWHHHHOOOO((((1111))))                      ((((UUUUNNNNIIIIXXXX 5555....2222))))                     WWWWHHHHOOOO((((1111))))



      NNNNAAAAMMMMEEEE
           who - who is on the system

      SSSSYYYYNNNNTTTTAAAAXXXX
           wwwwhhhhoooo [----uuuuTTTTHHHHllllppppddddbbbbrrrrttttaaaassssqqqq] [ file ]

           wwwwhhhhoooo aaaammmm iiii

           wwwwhhhhoooo aaaammmm IIII

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _W_h_o can list the user's name, terminal line, login time,
           elapsed time since activity occurred on the line, and the
           process-ID of the command interpreter (shell) for each
           current UNIX system user.  It examines the ////eeeettttcccc////uuuuttttmmmmpppp file to
           obtain its information.  If _f_i_l_e is given, that file is
           examined.  Usually, _f_i_l_e will be ////eeeettttcccc////wwwwttttmmmmpppp, which contains a
           history of all the logins since the file was last created.

           _W_h_o with the aaaammmm iiii or aaaammmm IIII option identifies the invoking
           user.

           Except for the default ----ssss option, the general format for
           output entries is:

                name [state] line time activity pid [comment] [exit]

           With options, _w_h_o can list logins, logoffs, reboots, and
           changes to the system clock, as well as other processes
           spawned by the _i_n_i_t process.  These options are:

           ----uuuu    lists currently logged-in users only.  The output _n_a_m_e
                 is the user's login name.  The _l_i_n_e is the name of the
                 line as found in the ////ddddeeeevvvv directory.  _T_i_m_e is when the
                 user logged in.  _A_c_t_i_v_i_t_y (WHICH IS NOT CURRENTLY
                 IMPLEMENTED) gives the the number of hours and minutes
                 since activity last occurred on that line.  A dot (....)
                 indicates that the terminal has seen activity in the
                 last minute and is therefore ``current''.  If more
                 than twenty-four hours have elapsed or the line has
                 not been used since boot time, the entry is marked
                 old....  This field is useful when trying to determine
                 whether a person is working at the terminal.  The _p_i_d
                 is the process-ID of the user's shell.  The _c_o_m_m_e_n_t is
                 the comment field associated with this line as found
                 in ////eeeettttcccc////iiiinnnniiiittttttttaaaabbbb (see _i_n_i_t_t_a_b(4)).  This can contain
                 information about where the terminal is located, the
                 telephone number of the dataset, type of terminal if
                 hard-wired, etc.

           ----TTTT    This option is the same as the ----uuuu option, except that
                 the _s_t_a_t_e of the terminal line is printed.  The _s_t_a_t_e



      Page 1                                                   (9010-E)






      WWWWHHHHOOOO((((1111))))                      ((((UUUUNNNNIIIIXXXX 5555....2222))))                     WWWWHHHHOOOO((((1111))))



                 describes whether someone else can write to that
                 terminal.  A ++++ appears if the terminal is writable by
                 anyone; a ---- appears if it is not.  RRRRooooooootttt can write to
                 all lines having a ++++ or a ---- in the _s_t_a_t_e field.  If a
                 bad line is encountered, a ???? is printed.

           ----llll    This option lists only those lines on which the system
                 is waiting for someone to login.  The _n_a_m_e field is
                 LLLLOOOOGGGGIIIINNNN in such cases.  Other fields are the same as for
                 user entries except that the _s_t_a_t_e field does not
                 exist.

           ----HHHH    This option will print column headings above the
                 regular output.

           ----qqqq    This is a quick _w_h_o, displaying only the names and the
                 number of users currently logged on.  When this option
                 is used, all other options are ignored.

           ----pppp    This option lists any other process which is currently
                 active and has been previously spawned by _i_n_i_t.  The
                 _n_a_m_e field is the name of the program executed by _i_n_i_t
                 as found in ////eeeettttcccc////iiiinnnniiiittttttttaaaabbbb.  The _s_t_a_t_e, _l_i_n_e, and
                 _a_c_t_i_v_i_t_y fields have no meaning.  The _c_o_m_m_e_n_t field
                 shows the _i_d field of the line from ////eeeettttcccc////iiiinnnniiiittttttttaaaabbbb that
                 spawned this process.  See _i_n_i_t_t_a_b(4).





























      Page 2                                                   (9010-E)






      WWWWHHHHOOOO((((1111))))                      ((((UUUUNNNNIIIIXXXX 5555....2222))))                     WWWWHHHHOOOO((((1111))))



           ----dddd    This option displays all processes that have expired
                 and not been respawned by _i_n_i_t.  The _e_x_i_t field
                 appears for dead processes and contains the
                 termination and exit values (as returned by _w_a_i_t(2)),
                 of the dead process.  This can be useful in
                 determining why a process terminated.

           ----bbbb    This option indicates the time and date of the last
                 reboot.

           ----rrrr    This option indicates the current _r_u_n-_l_e_v_e_l of the
                 _i_n_i_t process.

           ----tttt    This option indicates the last change to the system
                 clock (via the _d_a_t_e(1) command) by rrrrooooooootttt.  See _s_u(1).

           ----aaaa    This option processes ////eeeettttcccc////uuuuttttmmmmpppp or the named _f_i_l_e with
                 all options turned on.

           ----ssss    This option is the default and lists only the _n_a_m_e,
                 _l_i_n_e, and _t_i_m_e fields.

      FFFFIIIILLLLEEEESSSS
           /etc/utmp
           /etc/wtmp
           /etc/inittab

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           date(1), init(1), login(1), mesg(1), su(1), wait(2),
           inittab(4), utmp(4).

























      Page 3                                                   (9010-E)



