mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 14:51:03 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user