Random file of set length

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Kevin Buettner
Datum:  
Betreff: Random file of set length
On Sep 11, 3:40pm, Matt Alexander wrote:

> On Wed, 11 Sep 2002, Gilbert T. Gutierrez, Jr. wrote:
>
> > I want to create a random file of 5MB. How do I do that?
>
> dd if=/dev/zero of=somefile bs=1024k count=5

        ^^^^^^^^^


That won't be random...

(Try /dev/random or /dev/urandom instead.)

Kevin