Skip to content

Instantly share code, notes, and snippets.

@hgascon
Created June 11, 2015 13:55
Show Gist options
  • Save hgascon/a0316dc790283f678289 to your computer and use it in GitHub Desktop.
Save hgascon/a0316dc790283f678289 to your computer and use it in GitHub Desktop.
Generate N random files with given size in a dir
#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