1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 20:02:09 +02:00
tldr/pages/common/tail.md
Agniva De Sarker 29612adca2
add a comma
2017-11-24 11:41:53 +05:30

23 lines
378 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}}`
- Keep reading file until `Ctrl + C`, even if the file is rotated:
`tail -F {{file}}`