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}
do
        dd if=/dev/urandom of=rnd-${i}.bin bs=1M count=20
done

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