diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-17 21:25:51 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-11-02 21:29:20 -0600 |
commit | e03f014e7ac4ea99b2b6b42164cb6ffd7d8c4c9d (patch) | |
tree | 1900745aacc3739df3cf686e91ecd5b0724af9cf /Base/usr | |
parent | c8f790e4dd8e34673c2ca1c24e428157bd671b13 (diff) | |
download | serenity-e03f014e7ac4ea99b2b6b42164cb6ffd7d8c4c9d.zip |
Base: Update tail(1) man page
Diffstat (limited to 'Base/usr')
-rw-r--r-- | Base/usr/share/man/man1/tail.md | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/Base/usr/share/man/man1/tail.md b/Base/usr/share/man/man1/tail.md index 2bf4e3730e..4be85cfbba 100644 --- a/Base/usr/share/man/man1/tail.md +++ b/Base/usr/share/man/man1/tail.md @@ -1,24 +1,44 @@ ## Name -tail +tail - Print the end of a file ## Synopsis -```sh -$ tail [--follow] [--lines number] <file> +```**sh +$ tail [-f] [-n number] [file] ``` ## Description -Print the end ('tail') of a file. +`tail` prints the specified `number` (10 by default) of lines at the end of `file`. -## Options: +## Options * `-f`, `--follow`: Output data as it is written to the file -* `-n number`, `--lines number`: Fetch the specified number of lines +* `-n number`, `--lines number`: Print the specified number of lines + +## Arguments + +* `file`: Target file. If unspecified or `-`, defaults to the standard input. + +## Examples + +Print the last 10 lines of README.md: +```sh +$ tail README.md +``` + +Print the last 42 lines of todo.txt: +```sh +$ tail -n42 todo.txt +``` -## Arguments: +Print the last lines as they are written to logs.log: +```sh +$ tail -f logs.log +``` -* `file`: File path +## See also -<!-- Auto-generated through ArgsParser --> +* [`head`(1)](help://man/1/head) +* [`cat`(1)](help://man/1/cat) |