Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-13 00:18:34 +00:00
parent ffbd8c31db
commit 904f7fe0c1
46 changed files with 228 additions and 157 deletions

View File

@@ -11,24 +11,24 @@ source: https://github.com/tldr-pages/tldr.git
- Show last 'count' lines in file:
`tail --lines {{count}} {{path/to/file}}`
`tail {{[-n|--lines]}} {{count}} {{path/to/file}}`
- Print a file from a specific line number:
`tail --lines +{{count}} {{path/to/file}}`
`tail {{[-n|--lines]}} +{{count}} {{path/to/file}}`
- Print a specific count of bytes from the end of a given file:
`tail --bytes {{count}} {{path/to/file}}`
`tail {{[-c|--bytes]}} {{count}} {{path/to/file}}`
- Print the last lines of a given file and keep reading it until `<Ctrl c>`:
`tail --follow {{path/to/file}}`
`tail {{[-f|--follow]}} {{path/to/file}}`
- Keep reading file until `<Ctrl c>`, even if the file is inaccessible:
`tail --retry --follow {{path/to/file}}`
`tail --retry {{[-f|--follow]}} {{path/to/file}}`
- Show last 'num' lines in 'file' and refresh every 'n' seconds:
`tail --lines {{count}} --sleep-interval {{seconds}} --follow {{path/to/file}}`
`tail {{[-n|--lines]}} {{count}} {{[-s|--sleep-interval]}} {{seconds}} {{[-f|--follow]}} {{path/to/file}}`