Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-13 00:29:55 +00:00
parent 42219ff8ca
commit b4f14e4a22
6 changed files with 19 additions and 15 deletions

View File

@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
- Reserve a file taking up 700 MiB of disk space:
`fallocate {{[-l|--length]}} {{700M}} {{path/to/file}}`
`fallocate {{[-l|--length]}} 700M {{path/to/file}}`
- Shrink an already allocated file by 200 MiB:
- Shrink an already allocated file by 200 MB:
`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} {{200M}} {{path/to/file}}`
`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} 200MB {{path/to/file}}`
- Shrink 20 MB of space after 100 MiB in a file:
`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} {{100M}} {{[-l|--length]}} {{20M}} {{path/to/file}}`
`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} 100M {{[-l|--length]}} 20M {{path/to/file}}`

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display reports every 2 seconds for 5 times:
`vmstat {{2}} {{5}}`
`vmstat 2 5`