Generate random file dd if=/dev/urandom of=<destination> bs=1048576 count=<filesize> Example This will generate a random file with 1000MB dd if=/dev/urandom of=/home/test/testFile.bin bs=1048576 count=1000