[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT = just a quicky

Thanks Damir, Nathan, and David...

I was doing if=/dev/random (forgot all about /dev/zero), and it was taking
a very long time to get even near 100M, so I thought there would be a
better way. Using /dev/zero helped a lot... and I could use tr to change
them to 1s (created two versions... but I think both would be
approximately the same speed).

Thanks again.

> dd if=/dev/zero of=/tmp/yourfile bs=1m count=100

> dd if=/dev/zero bs=1m count=100 |tr "\0" "1" > /tmp/yourfile

Reply to: