aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm/lastcomm.1
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-05-17 11:10:13 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-05-17 11:10:13 +0000
commit6fe3ecc3b1dfee44735ecc80493bb5181ca06b7f (patch)
tree87c6a7767f29607fb05e55b73994d30ecc853db6 /usr.bin/lastcomm/lastcomm.1
parent1c4920da03657b91569add379bb8b13c8a3d1c4a (diff)
downloadsrc-6fe3ecc3b1dfee44735ecc80493bb5181ca06b7f.tar.gz
src-6fe3ecc3b1dfee44735ecc80493bb5181ca06b7f.zip
Allow to specify strftime(3) format for process start end exit times.
Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=235541
Diffstat (limited to 'usr.bin/lastcomm/lastcomm.1')
-rw-r--r--usr.bin/lastcomm/lastcomm.113
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/lastcomm/lastcomm.1 b/usr.bin/lastcomm/lastcomm.1
index 77a49abecb16..10ee896c0186 100644
--- a/usr.bin/lastcomm/lastcomm.1
+++ b/usr.bin/lastcomm/lastcomm.1
@@ -28,7 +28,7 @@
.\" From: @(#)lastcomm.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd May 14, 2007
+.Dd May 17, 2012
.Dt LASTCOMM 1
.Os
.Sh NAME
@@ -38,6 +38,7 @@
.Nm
.Op Fl EScesu
.Op Fl f Ar file
+.Op Cm + Ns Ar format
.Op Ar command ...\&
.Op Ar user ...\&
.Op Ar terminal ...\&
@@ -77,6 +78,15 @@ is a single dash
reads accounting entries from the standard input.
.El
.Pp
+An operand with a leading plus sign
+.Pq Sq +
+is followed a user-defined format string which specifies the format
+in which to display the process's start or exit date and time.
+The format string may contain any of the conversion specifications
+described in the
+.Xr strftime 3
+manual page, as well as arbitrary text.
+.Pp
If no options are specified,
.Fl cS
is assumed.
@@ -165,6 +175,7 @@ will print details of each terminating command.
.Sh SEE ALSO
.Xr last 1 ,
.Xr sigaction 2 ,
+.Xr strftime 3 ,
.Xr acct 5 ,
.Xr core 5
.Sh HISTORY