mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 07:18:29 +01:00
19 lines
286 B
Markdown
19 lines
286 B
Markdown
# tail
|
|
|
|
> Display the last part of a file.
|
|
|
|
- Show last 'num' lines in file:
|
|
|
|
`tail -n {{num}} {{file}}`
|
|
|
|
- Show all file since line 'num':
|
|
|
|
`tail -n +{{num}} {{file}}`
|
|
|
|
- Show last 'num' bytes in file:
|
|
|
|
`tail -c {{num}} {{file}}`
|
|
|
|
- Keep reading file until ctrl-c:
|
|
|
|
`tail -f {{file}}`
|