How can I create a new file and fill it with 1 Gigabyte worth of random data? I need this to test some software.
I would prefer to use /dev/random or /dev/urandom.
|
How can I create a new file and fill it with 1 Gigabyte worth of random data? I need this to test some software. I would prefer to use |
|||
|
|
|
On most unices:
If your
If your
|
|||||||||||||||
|
|
Assuming that pseudo-random data is sufficient, dd(1) will read blocks of data from an input file and write them to an output file. The command line language is a little quirky, but it is one of those really useful tools worth mastering the basics of. In this case
You may also want to look at http://www.random.org/ as another path to getting some random data without having to generate it yourself. |
|||||||
|