Quickly create a large dummy file

Use the following to create a large dummy file containing all zeroes. Below we assume 1GB size file. You can change it to something else.

dd if=/dev/zero of=bigfile count=1 bs=1 seek=$((1024 * 1024 * 1024 - 1))

Learned from here.

Leave a Reply

Your email address will not be published. Required fields are marked *