Add tail.md
This commit is contained in:
15
common/tail.md
Normal file
15
common/tail.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# tail
|
||||||
|
|
||||||
|
> Display the last part of a file
|
||||||
|
|
||||||
|
- show last 'num' lines in file
|
||||||
|
|
||||||
|
`tail -n {{num}} {{file}}`
|
||||||
|
|
||||||
|
- show last 'num' bytes in file
|
||||||
|
|
||||||
|
`tail -c {{num}} {{file}}`
|
||||||
|
|
||||||
|
- keep reading file until ctrl-c
|
||||||
|
|
||||||
|
`tail -f {{file}}`
|
Reference in New Issue
Block a user