mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 10:50:59 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/tail
10
tldr/tail
@@ -9,6 +9,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `head`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tail-invocation.html>.
|
||||
|
||||
- Show last 10 lines in a file:
|
||||
|
||||
`tail {{path/to/file}}`
|
||||
|
||||
- Show last 10 lines of multiple files:
|
||||
|
||||
`tail {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Show last 'count' lines in file:
|
||||
|
||||
`tail {{[-n|--lines]}} {{count}} {{path/to/file}}`
|
||||
@@ -29,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tail {{[-F|--retry --follow]}} {{path/to/file}}`
|
||||
|
||||
- Show last 'count' lines in 'file' and refresh every 'seconds' seconds:
|
||||
- Show last `count` lines in a file and refresh every `seconds` seconds:
|
||||
|
||||
`tail {{[-n|--lines]}} {{count}} {{[-s|--sleep-interval]}} {{seconds}} {{[-f|--follow]}} {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user