--- lastcomm.1-orig 2007-01-01 18:28:12.000000000 -0500 +++ lastcomm.1 2007-01-01 18:28:23.000000000 -0500 @@ -1,4 +1,18 @@ .TH LASTCOMM 1 "1995 October 31" +.de EX +.nf +.ft CW +.. +.de EE +.ft R +.fi +.. +.de DS +.nf +.. +.de DE +.fi +.. .SH NAME lastcomm \- print out information about previously executed commands. .SH SYNOPSIS @@ -73,9 +87,9 @@ only records containing those items will be displayed. For example, to find out which users used command `a.out' and which users were logged into `tty0', type: -.ce +.EX lastcomm a.out tty0 -.ce 0 +.EE .LP This will print any entry for which `a.out' or `tty0' matches in any of the record's fields (command, name, or terminal). If @@ -84,13 +98,14 @@ all of the executions of command .IR a.out " by user " root " on terminal " tty0, type: -.ce +.EX lastcomm \-\-strict-match a.out root tty0 -.ce 0 +.EE .LP The order of the arguments is not important. .LP For each entry the following information is printed: +.DS + command name of the process + flags, as recorded by the system accounting routines: S -- command executed by super-user @@ -100,6 +115,7 @@ X -- command was terminated with the signal SIGTERM + the name of the user who ran the process + time the process exited +.DE .SH OPTIONS \. .PD 0 .TP