BSD 4_3_Reno release
[unix-history] / usr / src / usr.bin / lastcomm / lastcomm.1
index f266bf0..65dea58 100644 (file)
-.\" Copyright (c) 1980 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1980, 1990 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)lastcomm.1  6.3 (Berkeley) %G%
+.\" Redistribution and use in source and binary forms are permitted provided
+.\" that: (1) source distributions retain this entire copyright notice and
+.\" comment, and (2) distributions including binaries display the following
+.\" acknowledgement:  ``This product includes software developed by the
+.\" University of California, Berkeley and its contributors'' in the
+.\" documentation or other materials provided with the distribution and in
+.\" all advertising materials mentioning features or use of this software.
+.\" Neither the name of the University nor the names of its contributors may
+.\" be used to endorse or promote products derived from this software without
+.\" specific prior written permission.
+.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
 .\"
-.TH LASTCOMM 1 ""
-.UC
-.SH NAME
-lastcomm \- show last commands executed in reverse order
-.SH SYNOPSIS
-.B lastcomm
-[ -f file ]
-[ command name ] ... [user name] ... [terminal name] ...
-.SH DESCRIPTION
-.I Lastcomm
+.\"     @(#)lastcomm.1 6.6 (Berkeley) 7/24/90
+.\"
+.Dd July 24, 1990
+.Dt LASTCOMM 1
+.Os BSD 3.0
+.Sh NAME
+.Nm lastcomm
+.Nd show last commands executed in reverse order
+.Sh SYNOPSIS
+.Nm lastcomm
+.Op Fl f Ar file
+.Op Ar command \&...
+.Op Ar user \&...
+.Op Ar terminal \&...
+.Sh DESCRIPTION
+.Nm Lastcomm
 gives information on previously executed commands.
 With no arguments,
 gives information on previously executed commands.
 With no arguments,
-.I lastcomm
+.Nm lastcomm
 prints information about all the commands recorded
 prints information about all the commands recorded
-during the current accounting file's lifetime.  The \fI-f\fP option
-causes \fIlastcomm\fP to read from a file other than the default
+during the current accounting file's lifetime.
+.Pp
+Option:
+.Pp
+.Tw Fl
+.Tp Cx Fl f
+.Ws
+.Ar file
+.Cx
+Read from
+.Ar file
+rather than the default
 accounting file.
 accounting file.
+.Tp
+.Pp
 If called with arguments, only accounting entries with a
 If called with arguments, only accounting entries with a
-matching command
-name, user name, or terminal name are printed.
-So, for example,
-.ti +0.5i
-lastcomm a.out root ttyd0
-.br
+matching
+.Ar command
+name,
+.Ar user
+name,
+or
+.Ar terminal
+name
+are printed.
+So, for example:
+.Pp
+.Dl lastcomm a.out root ttyd0
+.Pp
 would produce a listing of all the
 executions of commands named
 would produce a listing of all the
 executions of commands named
-.I a.out
+.Pa a.out
 by user
 by user
-.I root
+.Ar root
 on the terminal
 on the terminal
-.IR ttyd0 .
-.PP
+.Ar ttyd0  .
+.Pp
 For each process entry, the following are printed.
 For each process entry, the following are printed.
-.in +0.5i
+.Pp
+.Ds I
 The name of the user who ran the process.
 The name of the user who ran the process.
-.br
 Flags, as accumulated by the accounting facilities in the system.
 Flags, as accumulated by the accounting facilities in the system.
-.br
 The command name under which the process was called.
 The command name under which the process was called.
-.br
 The amount of cpu time used by the process (in seconds).
 The amount of cpu time used by the process (in seconds).
-.br
 The time the process exited.
 The time the process exited.
-.in -0.5i
-.PP
+.De
+.Pp
 The flags are encoded as follows: ``S'' indicates the command was
 executed by the super-user, ``F'' indicates the command ran after
 The flags are encoded as follows: ``S'' indicates the command was
 executed by the super-user, ``F'' indicates the command ran after
-a fork, but without a following 
-.IR exec ,
+a fork, but without a following
+.Xr 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'' indicates the command was run in PDP-11 compatibility mode
 (VAX only),
 ``D'' indicates the command terminated with the generation of a
-.I core
+.Pa core
 file, and ``X'' indicates the command was terminated with a signal.
 file, and ``X'' indicates the command was terminated with a signal.
-.SH FILES
-/usr/adm/acct
-.SH "SEE ALSO"
-last(1),
-sigvec(2),
-acct(8),
-core(5)
+.Sh FILES
+.Dw /var/account/acct
+.Di L
+.Dp Pa /var/account/acct
+.Dp
+.Sh SEE ALSO
+.Xr last 1 ,
+.Xr sigvec 2 ,
+.Xr acct 5 ,
+.Xr core 5
+.Sh HISTORY
+.Nm Lastcomm
+appeared in 3 BSD.