From 27033a5d95e75de947f910e2a7a4d7e98804462f Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Sat, 22 Jan 2022 18:06:48 -0800 Subject: [PATCH] tail: refresh page (#7681) --- pages/common/tail.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/common/tail.md b/pages/common/tail.md index eac3930b7a..5c53f65d86 100644 --- a/pages/common/tail.md +++ b/pages/common/tail.md @@ -1,28 +1,29 @@ # tail > Display the last part of a file. +> See also: `head`. > More information: . -- Show last 'num' lines in file: +- Show last 'count' lines in file: -`tail -n {{num}} {{file}}` +`tail --lines {{count}} {{path/to/file}}` -- Show all file since line 'num': +- Print a file from a specific line number: -`tail -n +{{num}} {{file}}` +`tail --lines +{{count}} {{path/to/file}}` -- Show last 'num' bytes in file: +- Print a specific count of bytes from the end of a given file: -`tail -c {{num}} {{file}}` +`tail --bytes {{count}} {{path/to/file}}` -- Keep reading file until `Ctrl + C`: +- Print the last lines of a given file and keep reading file until `Ctrl + C`: -`tail -f {{file}}` +`tail --follow {{path/to/file}}` - Keep reading file until `Ctrl + C`, even if the file is inaccessible: -`tail -F {{file}}` +`tail --retry --follow {{path/to/file}}` - Show last 'num' lines in 'file' and refresh every 'n' seconds: -`tail -n {{num}} -s {{n}} -f {{file}}` +`tail --lines {{count}} --sleep-interval {{seconds}} --follow {{path/to/file}}`