This is one of the least used and known commands in Linux and can be very useful for Administrators when building or configuring monitoring of disk space and directory usage. The fallocate command is used for the pre-allocation of blocks to a File. A team of Administrators are on a task to monitor specific directories in multiple servers. How do we test that? Fallocate command helps do this by allocating blocks requiring no I/O to the data blocks.
NOTE: This command is supported on BTRFS, EXT4, OCTFS2, and XFS filesystems
Shows the basic usage and command syntax.
To use this command lets check our current disk usage
Test by creating a 20GB file
fallocate -l 20G testfile1
view the file size and disk usage
Fallocate command is similar to the dd command, however, dd exists mostly for older versions of Linux.