diff options
| author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2023-11-28 16:52:11 +0000 |
|---|---|---|
| committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2023-12-01 11:20:25 +0000 |
| commit | 29cdffb68a5845ec597742c8b2238b9ff1643867 (patch) | |
| tree | 6612234c257d2dfe3a39b2684f021b0419cc6921 /usr.bin/tail | |
| parent | 1023abd5b60f82360ea9f09b9af06dd30d6d8c18 (diff) | |
Diffstat (limited to 'usr.bin/tail')
| -rw-r--r-- | usr.bin/tail/tail.1 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1 index 25fa26655ac0..19c4046b6683 100644 --- a/usr.bin/tail/tail.1 +++ b/usr.bin/tail/tail.1 @@ -147,7 +147,7 @@ flag is specified. .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 @@ -157,6 +157,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 , |
