{"id":321,"date":"2020-11-23T10:17:20","date_gmt":"2020-11-23T10:17:20","guid":{"rendered":"http:\/\/qedevelopment.co.uk\/?p=321"},"modified":"2020-12-29T14:19:27","modified_gmt":"2020-12-29T14:19:27","slug":"linux-how-to-generate-a-file-of-random-data","status":"publish","type":"post","link":"https:\/\/qedevelopment.co.uk\/?p=321","title":{"rendered":"Linux: How to Generate a File of Random Data"},"content":{"rendered":"\n<p>There are several methods you could use to generate a file filed with random data under Linux. In the example below dd has been used to generate 1,000,000 bytes of random data.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dd if=\/dev\/urandom of=.\/randI.hex bs=1MB count=1<\/pre>\n\n\n\n<p>If you want a file filed with zeros you could substitute \/dev\/urandom with \/dev\/zero.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are several methods you could use to generate a file filed with random data under Linux. In the example below dd has been used to generate 1,000,000 bytes of random data. dd if=\/dev\/urandom of=.\/randI.hex bs=1MB count=1 If you want a file filed with zeros you could substitute \/dev\/urandom with \/dev\/zero.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11],"tags":[22],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/321"}],"collection":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321"}],"version-history":[{"count":1,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}