Generate Random Files from Command Line

Generate Random Files from Command Line

for i in {1..2000}; do dd if=/dev/urandom bs=1000000 count=1 of=file$i; done

Where 2000 is the number of files and 1000000 is the size in bytes

Source

Leave a Reply

Your email address will not be published. Required fields are marked *