How To Install Fallocate?
Install fallocate
-
Debian
apt-get install util-linuxClick to copy -
Ubuntu
apt-get install util-linuxClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install util-linuxClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install util-linuxClick to copy -
macOS
brew install util-linuxClick to copy
Reserve or deallocate disk space to files. The utility allocates space without zeroing.
How to use fallocate?
Below are few example commands for fallocate that you can use in the terminal.
Reserve a file taking up 700MB of disk space:fallocate --length 700M path/to/fileClick to copyShrink an already allocated file by 200MB:fallocate --collapse-range --length 200M path/to/fileClick to copyShrink 20MB of space after 100MB in a file:fallocate --collapse-range --offset 100M --length 20M path/to/fileClick to copy
Installation of latest fallocate command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




