The following commands create a file that contains exactly 3 MiB (3 x 1024 x 1024 bytes) of random data.
dd if=/dev/urandom of=largefile bs=3145728 count=11+0 records in 1+0 records out 3145728 bytes (3.1 MB) copied, 0.205813 s, 15.3 MB/s
dd is a utility that copies a number of bytes from an input file to an output file. The above example uses the device file
/dev/urandom as a source of random data.
Posted By Blogger to HDGEM at 1/31/2017 01:44:00 PM