Last active
November 14, 2016 12:32
-
-
Save jaamo/c67fe4ee82e1514bedb4b5731a99b158 to your computer and use it in GitHub Desktop.
Linux: Generate File of a certain size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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