Last Updated: February 25, 2016
·
3.786K
· mhourahine

Quickly create large binary files for testing

For Unix-based systems:

#creates 1Mb file
dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024

#create a 10Mb file
dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*10]