Skip to content

Instantly share code, notes, and snippets.

@jaamo
Last active November 14, 2016 12:32
Show Gist options
  • Save jaamo/c67fe4ee82e1514bedb4b5731a99b158 to your computer and use it in GitHub Desktop.
Save jaamo/c67fe4ee82e1514bedb4b5731a99b158 to your computer and use it in GitHub Desktop.
Linux: Generate File of a certain size
# OS X
dd if=/dev/zero of=output.dat bs=24m count=1
# Linux
dd if=/dev/zero of=output.dat bs=24M count=1
# Add some content to the file.
perl -e 'print "x" x (1024*1024*120)' > test-120MB.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment