From 94cb11e58d95084384cf71200910bd336439b0a5 Mon Sep 17 00:00:00 2001 From: shyneko <34548743+tminei@users.noreply.github.com> Date: Thu, 16 Jul 2020 23:49:40 +0300 Subject: [PATCH] tail: add example using -s parameter. (#4180) --- pages/common/tail.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/tail.md b/pages/common/tail.md index 1c6f82aee9..46d85c73de 100644 --- a/pages/common/tail.md +++ b/pages/common/tail.md @@ -21,3 +21,7 @@ - Keep reading file until `Ctrl + C`, even if the file is rotated: `tail -F {{file}}` + +- Show last 'num' lines in 'file' and refresh every 'n' seconds: + +`tail -n {{num}} -s {{n}} -f {{file}}`