Linux

What the Fallocate command does

fallocate

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. In this article, you will learn “What the Fallocate command does” Please refer to these related guides: How to fix CPU at 100% when nothing is running problem on Windows, what are the advantage of using a 3rd party software for Backup (N2WS by Veeam) over AMI,
how to monitor Windows hosts via Nagios, how to Hide or Remove the Search Button from Windows 10 Taskbar, and how to prevent your computers from sending Diagnostics & feedback off via Windows Settings and Group Policy.

Linux Fallocate Command

NOTE: This command is supported on BTRFS, EXT4, OCTFS2, and XFS filesystems

fallocate --help

Shows the basic usage and command syntax.

image_2021_09_10T04_02_50_422Z

To use this command lets check our current disk usage

df -hT
image_2021_09_10T03_53_25_162Z

Test by creating a 20GB file

fallocate -l 20G testfile1

view the file size and disk usage

image_2021_09_10T04_02_21_278Z

The Fallocate command is similar to the dd command, however, dd exists mostly for older versions of Linux. Top 10 communication software for Mac 2021.

I hope you found this blog post helpful on what the Fallocate command does? Please let me know in the comment section if you have any questions.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x