Skip to main content

[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

Popular posts from this blog

How to reset password of Jenkins

Reset password of JenkinsPrefer way, No securities were harmedSee also:
What is Jenkins' initial admin password

To reset it without disabling security if you're using matrix permissions (probably easily adaptable to other login methods): In config.xml, set disableSignup to false.Restart Jenkins.Go to the Jenkins web page and sign up with a new user.In config.xml, duplicate one of the <permission>hudson.model.Hudson.Administer:username</permission> lines and replace username with the new user.If it's a private server, set disableSignup back to true in config.xml.Restart Jenkins.Go to the Jenkins web page and log in as the new user.Reset the password of the original user.Log in as the original user. Optional cleanup: Delete the new user.Delete the temporary <permission> line in config.xml. Alternative way:
ssh to the server, disable authentication, set the password via the Jenkins Web UI, then enable authentication.