Generate files with random bytes

The following command grabs 20 Mb of random bytes from /dev/urandom and saves it to rnd.bin:

dd if=/dev/urandom of=rnd.bin bs=1M count=20

Generate a bunch of files:

for i in {00..99}
        dd if=/dev/urandom of=rnd-${i}.bin bs=1M count=20

This entry was posted in Posts, ShortPosts, SoftwareEngineering. Bookmark the permalink.