Skip to content

Commit

Permalink
fallocate: add page (tldr-pages#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuerbringer authored and fl76at committed Jun 4, 2018
1 parent 336578e commit 0d6e564
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/linux/fallocate.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit 0d6e564

Please sign in to comment.