Ick. /dev/zero is so much quicker and even faster with a larger
block size.
dd if=/dev/zero of=file1 bs=4096 count=254592
254592+0 records in
254592+0 records out
1042808832 bytes (1.0 GB) copied, 21.6826 seconds, 48.1 MB/s
-jhs
On Wed Aug 29 20:57:25 EDT 2007, Raymond Page <[log in to unmask]>
wrote:
> What about just popping in your favorite music cd and pulling
> data from that?
>
> Personally I'd use dd to get the right file size (if block size
> will
> take you over, make it short and then append)
>
> On 8/6/07, Edward Allcutt <[log in to unmask]> wrote:
>> On Mon, 2007-08-06 at 08:51 -0400, Allen S. Rout wrote:
>> > So, for debugging purposes (long story) I want to create a
>> couple of
>> > files which are precisely
>> >
>> > 1042808832
>> >
>> > bytes long. We were musing about optimal ways to do this.
|