Skip to content

Instantly share code, notes, and snippets.

@selfawaresoup
Last active December 19, 2015 03:49
Show Gist options
  • Save selfawaresoup/5892739 to your computer and use it in GitHub Desktop.
Save selfawaresoup/5892739 to your computer and use it in GitHub Desktop.
Generate large files for testing

Generate 1GB files quickly (instantly):

dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*1024]

Generate 1GB files with realistic copy delay:

dd if=/dev/zero of=test.img bs=1024 coun=$[1024*1024] seek=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment