Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2020 21:51:50 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359229 - head/usr.bin/tail
Message-ID:  <202003222151.02MLpoTg001726@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp (doc,ports committer)
Date: Sun Mar 22 21:51:50 2020
New Revision: 359229
URL: https://svnweb.freebsd.org/changeset/base/359229

Log:
  Use -F instead of -f in tail(1) examples
  
  There is an example in tail(1) manual page explaining how to use tail(1) to
  track the contents of /var/log/messages. The example uses the -f flag to
  follow the file. The problem with the -f flag is that it cannot handle the
  situation where /var/log/messages is rotated. Hence, use -F instead in the
  example.
  
  Reviewed by:	asomers
  MFC after:	3 days
  Differential Revision:	https://reviews.freebsd.org/D24157

Modified:
  head/usr.bin/tail/tail.1

Modified: head/usr.bin/tail/tail.1
==============================================================================
--- head/usr.bin/tail/tail.1	Sun Mar 22 21:41:32 2020	(r359228)
+++ head/usr.bin/tail/tail.1	Sun Mar 22 21:51:50 2020	(r359229)
@@ -31,7 +31,7 @@
 .\"	@(#)tail.1	8.1 (Berkeley) 6/6/93
 .\" $FreeBSD$
 .\"
-.Dd April 10, 2018
+.Dd March 22, 2020
 .Dt TAIL 1
 .Os
 .Sh NAME
@@ -157,7 +157,7 @@ Keep
 .Pa /var/log/messages
 open, displaying to the standard output anything appended to the file:
 .Pp
-.Dl $ tail -f /var/log/messages
+.Dl $ tail -F /var/log/messages
 .Sh SEE ALSO
 .Xr cat 1 ,
 .Xr head 1 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003222151.02MLpoTg001726>