Created
June 11, 2015 13:55
-
-
Save hgascon/a0316dc790283f678289 to your computer and use it in GitHub Desktop.
Generate N random files with given size in a dir
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
#option 1: | |
for i in $(seq 1 N); do dd if=/dev/urandom of=$i bs=1M count=2; done | |
#option 2: | |
dd if=/dev/urandom of=masterfile bs=1 count=20000 | |
split -b 1000 -a 10 masterfilex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment