The fallocate command

preallocate or deallocate space to a file 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-l, --length length
Specifies the length of the range, in bytes.

Examples

sudo fallocate -l 2G /swapfile

Lessons that use fallocate