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

@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
- Output the first few lines of a file:
`head --lines {{count}} {{path/to/file}}`
`head {{[-n|--lines]}} {{count}} {{path/to/file}}`
- Output the first few bytes of a file:
`head --bytes {{count}} {{path/to/file}}`
`head {{[-c|--bytes]}} {{count}} {{path/to/file}}`
- Output everything but the last few lines of a file:
`head --lines -{{count}} {{path/to/file}}`
`head {{[-n|--lines]}} -{{count}} {{path/to/file}}`
- Output everything but the last few bytes of a file:
`head --bytes -{{count}} {{path/to/file}}`
`head {{[-c|--bytes]}} -{{count}} {{path/to/file}}`