January 31, 2017

[HDGEM] How to create a file of random data

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=1  1+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
Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...