


_O_n_l_i_n_e _M_a_n_u_a_l             User Commands               lastcomm(1)



NNNNAAAAMMMMEEEE
     lastcomm - show last commands executed in reverse order

SSSSYYYYNNNNTTTTAAAAXXXX
     llllaaaassssttttccccoooommmmmmmm [ command name ] ... [user name] ... [terminal
     name] ...

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     _l_a_s_t_c_o_m_m gives information on previously executed commands.
     With no arguments, _l_a_s_t_c_o_m_m prints information about all the
     commands recorded during the current accounting file's life-
     time.  If called with arguments, only accounting entries
     with a matching command name, user name, or terminal name
     are printed.  For example,
          lastcomm a.out root ttyaaa000
     produces a listing of all the executions of commands named
     _a._o_u_t by user _r_o_o_t on the terminal _t_t_y_a_a_a_0_0_0.

     For each process entry, the following are printed:
          the name of the user who ran the process
          flags, as accumulated by the accounting facilities in
          the system
          the command name under which the process was called
          the amount of cpu time used by the process (in seconds)
          the time the process exited.

     The flags are encoded as follows: `S' - the command was exe-
     cuted by the super-user, `F' - the command followed a _f_o_r_k
     with no _e_x_e_c_v_e, `C' - the command was run in PDP-11-
     compatibility mode (VAX only), `D' - the command terminated
     with the generation of a _c_o_r_e file, and `X' - the command
     was terminated with the SIGTERM signal.

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     User Commands (1):  last
     System Calls (2):  sigvec
     File Formats (5):  acct, core
     System Manager Commands (8):  sa

March 1989                                    TX User's Reference



















