mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-25 18:03:07 +03:00
20 lines
290 B
Markdown
20 lines
290 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}}`
|