4.3BSD-Reno/share/man/cat1/lastcomm.0

Compare this file to the similar file:
Show the results in this format:

LASTCOMM(1)		    UNIX Reference Manual		   LASTCOMM(1)

NNAAMMEE
     llaassttccoommmm - show last commands executed in reverse order

SSYYNNOOPPSSIISS
     llaassttccoommmm [--ff _f_i_l_e] [_c_o_m_m_a_n_d ...] [_u_s_e_r ...] [_t_e_r_m_i_n_a_l ...]

DDEESSCCRRIIPPTTIIOONN
     LLaassttccoommmm gives information on previously executed commands.  With no ar-
     guments, llaassttccoommmm prints information about all the commands recorded dur-
     ing the current accounting file's lifetime.

     Option:

     --ff _f_i_l_e   Read from _f_i_l_e rather than the default accounting file.

     If called with arguments, only accounting entries with a matching _c_o_m_m_a_n_d
     name, _u_s_e_r name, or _t_e_r_m_i_n_a_l name are printed.  So, for example:

	   lastcomm a.out root ttyd0

     would produce 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_d_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'' indicates the command was execut-
     ed by the super-user, ``F'' indicates the command ran after a fork, but
     without a following exec, ``C'' indicates the command was run in PDP-11
     compatibility mode (VAX only), ``D'' indicates the command terminated
     with the generation of a _c_o_r_e file, and ``X'' indicates the command was
     terminated with a signal.

FFIILLEESS
     /_v_a_r/_a_c_c_o_u_n_t/_a_c_c_t


SSEEEE AALLSSOO
     last(1), sigvec(2), acct(5), core(5)

HHIISSTTOORRYY
     LLaassttccoommmm appeared in 3 BSD.