mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
Base: Update tail(1) man page
This commit is contained in:
parent
c8f790e4dd
commit
e03f014e7a
2 changed files with 29 additions and 10 deletions
|
@ -39,7 +39,6 @@ for i in ( \
|
||||||
(shot 1) \
|
(shot 1) \
|
||||||
(sql 1) \
|
(sql 1) \
|
||||||
(strace 1) \
|
(strace 1) \
|
||||||
(tail 1) \
|
|
||||||
(tr 1) \
|
(tr 1) \
|
||||||
(traceroute 1) \
|
(traceroute 1) \
|
||||||
(tree 1) \
|
(tree 1) \
|
||||||
|
|
|
@ -1,24 +1,44 @@
|
||||||
## Name
|
## Name
|
||||||
|
|
||||||
tail
|
tail - Print the end of a file
|
||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
```sh
|
```**sh
|
||||||
$ tail [--follow] [--lines number] <file>
|
$ tail [-f] [-n number] [file]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## 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
|
* `-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:
|
## Arguments
|
||||||
|
|
||||||
* `file`: File path
|
* `file`: Target file. If unspecified or `-`, defaults to the standard input.
|
||||||
|
|
||||||
<!-- Auto-generated through ArgsParser -->
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
Print the last lines as they are written to logs.log:
|
||||||
|
```sh
|
||||||
|
$ tail -f logs.log
|
||||||
|
```
|
||||||
|
|
||||||
|
## See also
|
||||||
|
|
||||||
|
* [`head`(1)](help://man/1/head)
|
||||||
|
* [`cat`(1)](help://man/1/cat)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue