tldr/pages/common/tail.md

20 lines
281 B
Markdown
Raw Normal View History

2014-02-22 21:49:40 +00:00
# tail
> Display the last part of a file
- show last 'num' lines in file
`tail -n {{num}} {{file}}`
2014-03-19 11:49:24 +00:00
- show all file since line 'num'
`tail -n +{{num}} {{file}}`
2014-02-22 21:49:40 +00:00
- show last 'num' bytes in file
`tail -c {{num}} {{file}}`
- keep reading file until ctrl-c
`tail -f {{file}}`