Created
April 3, 2013 19:55
-
-
Save benhosmer/5304676 to your computer and use it in GitHub Desktop.
Using dd to create a 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
# Generate a file of a specified size | |
# Use if=/dev/urandom for random stuff in the file | |
# This creates a file that is 3mb seek=$[1024*x] where x is the size in MB's you want it to be. | |
dd if=/dev/zero of=3mbfile.png bs=1024 count=0 seek=$[1024*3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment