Skip to content

Instantly share code, notes, and snippets.

@garoevans
Created April 12, 2012 16:33
Show Gist options
  • Save garoevans/e1a89eb7dcd98fa53200 to your computer and use it in GitHub Desktop.
Save garoevans/e1a89eb7dcd98fa53200 to your computer and use it in GitHub Desktop.
LINUX: create large random file
1MB
dd if=/dev/zero of=g_file.dat count=1024 bs=1024
500MB
dd if=/dev/zero of=g_file.dat count=1024 bs=51200
1GB
dd if=/dev/zero of=g_file.dat count=1024 bs=1048576
5GB
dd if=/dev/zero of=g_file.dat count=1024 bs=5242880
10GB
dd if=/dev/zero of=g_file.dat count=1024 bs=10485760
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment