git: 9f20787fe89e - main - tail.1: Add an example for +n 1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Nov 2023 16:57:00 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/src/commit/?id=9f20787fe89e2a912a9e5dd2d3da56087722e8c2
commit 9f20787fe89e2a912a9e5dd2d3da56087722e8c2
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-11-28 16:52:11 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-11-28 16:55:58 +0000
tail.1: Add an example for +n 1
MFC after: 3 days
Sponsored by: Klara, Inc.
---
usr.bin/tail/tail.1 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1
index a888f6828bd1..9e13567e01e1 100644
--- a/usr.bin/tail/tail.1
+++ b/usr.bin/tail/tail.1
@@ -155,7 +155,7 @@ arguments may also be specified with size suffixes supported by
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
-To display the last 500 lines of the file
+Display the last 500 lines of the file
.Ar foo :
.Pp
.Dl $ tail -n 500 foo
@@ -165,6 +165,12 @@ Keep
open, displaying to the standard output anything appended to the file:
.Pp
.Dl $ tail -F /var/log/messages
+.Pp
+Read
+.Pa /var/log/messages
+from the beginning and then follow the file as usual:
+.Pp
+.Dl $ tail -F -n +1 /var/log/messages
.Sh SEE ALSO
.Xr cat 1 ,
.Xr head 1 ,