


LASTCOMM(1)              USER COMMANDS                LASTCOMM(1)



NAME
     lastcomm - show the last commands executed, in reverse order

SYNOPSIS
     lastcomm [ _c_o_m_m_a_n_d-_n_a_m_e ] ... [ _u_s_e_r-_n_a_m_e ] ... [  _t_e_r_m_i_n_a_l-
     _n_a_m_e ] ...

DESCRIPTION
     lastcomm gives information on previously executed  commands.
     lastcomm  with  no  arguments displays information about all
     the commands recorded during the current  accounting  file's
     lifetime.   If called with arguments, lastcomm displays only
     accounting entries with a matching _c_o_m_m_a_n_d-_n_a_m_e,  _u_s_e_r-_n_a_m_e,
     or _t_e_r_m_i_n_a_l-_n_a_m_e.

EXAMPLES
     The command

          example% lastcomm a.out root ttyd0

     would produce a listing of all the  executions  of  commands
     named a.out, by user root while using the terminal ttyd0.

          example% lastcomm root

     would produce a listing of all the commands executed by user
     root.

     For each process  entry,  lastcomm  displays  the  following
     information:

          o+  The command name under which the process was called.

          o+  One or more  flags  indicating  special  information
             about  the  process.   The  flags have the following
             meanings:

             F  The process performed a fork but not an exec.

             S  The process ran as a set-user-id program.

             D  The process dumped memory.

             X  The process was killed by some signal.

          o+  The name of the user who ran the process.

          o+  The terminal from which the user was  logged  in  at
             the time (if applicable).

          o+  The amount of CPU  time  used  by  the  process  (in
             seconds).



Sun Release 4.1   Last change: 7 September 1989                 1






LASTCOMM(1)              USER COMMANDS                LASTCOMM(1)



          o+  The date and time the process starts.

FILES
     /var/adm/pacct      accounting file

SEE ALSO
     last(1), sigvec(2), acct(5), core(5)
















































Sun Release 4.1   Last change: 7 September 1989                 2



