Created
August 16, 2012 10:01
-
-
Save szydan/3369037 to your computer and use it in GitHub Desktop.
Create a file of certain size filed with random content or zeros
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
#how to create a file of certain size and random content | |
dd if=/dev/urandom of=output.dat bs=1024 count=1024 | |
#the same for zero’ish content | |
dd if=/dev/zero of=output.dat bs=1024 count=1024 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment