mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-08 07:54:06 +02:00
fallocate: add page (#2089)
This commit is contained in:
parent
0cfcd52193
commit
57849426b3
1 changed files with 16 additions and 0 deletions
16
pages/linux/fallocate.md
Normal file
16
pages/linux/fallocate.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# fallocate
|
||||
|
||||
> Reserve or deallocate disk space to files.
|
||||
> The utility allocates space without zeroing.
|
||||
|
||||
- Reserve a file taking up 700MB of disk space:
|
||||
|
||||
`fallocate --length {{700M}} {{path/to/file}}`
|
||||
|
||||
- Shrink an already allocated file by 200MB:
|
||||
|
||||
`fallocate --collapse-range --length {{200M}} {{path/to/file}}`
|
||||
|
||||
- Shrink 20MB of space after 100MB in a file:
|
||||
|
||||
`fallocate --collapse-range --offset {{100M}} --length {{20M}} {{path/to/file}}`
|
Loading…
Add table
Reference in a new issue