Skip to content

Commit

Permalink
tail.1: Add an example for +n 1
Browse files Browse the repository at this point in the history
MFC after:	3 days
Sponsored by:	Klara, Inc.
  • Loading branch information
0mp committed Nov 28, 2023
1 parent 51c2702 commit 9f20787
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion usr.bin/tail/tail.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ,
Expand Down

0 comments on commit 9f20787

Please sign in to comment.