How to create a large file on a Linux system?

You can use fallocate command to quickly create a large file in Linux systems.

Example:

Create a large file of size 1 GB:

Get the file size:

Remove the file:

Leave a Reply