SCCS-vsn: usr.bin/lastcomm/lastcomm.1 6.3
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)lastcomm.1 6.2 (Berkeley) %G%
+.\" @(#)lastcomm.1 6.3 (Berkeley) %G%
.\"
.TH LASTCOMM 1 ""
.UC
.\"
.TH LASTCOMM 1 ""
.UC
lastcomm \- show last commands executed in reverse order
.SH SYNOPSIS
.B lastcomm
lastcomm \- show last commands executed in reverse order
.SH SYNOPSIS
.B lastcomm
[ command name ] ... [user name] ... [terminal name] ...
.SH DESCRIPTION
.I Lastcomm
[ command name ] ... [user name] ... [terminal name] ...
.SH DESCRIPTION
.I Lastcomm
With no arguments,
.I lastcomm
prints information about all the commands recorded
With no arguments,
.I lastcomm
prints information about all the commands recorded
-during the current accounting file's lifetime.
+during the current accounting file's lifetime. The \fI-f\fP option
+causes \fIlastcomm\fP to read from a file other than the default
+accounting file.
If called with arguments, only accounting entries with a
matching command
name, user name, or terminal name are printed.
If called with arguments, only accounting entries with a
matching command
name, user name, or terminal name are printed.