Creating Fixed size file on unix (33 Views)
Reply
Trusted Contributor
avsrini
Posts: 136
Registered: ‎02-26-2002
Message 1 of 5 (33 Views)
Accepted Solution

Creating Fixed size file on unix

Hi All,
I remember, there is a utility in hpux to
create fixed size file with no data. Typically,
we use this to do some testings. Now i forgot
that utility. Anybody got a idea, what utility/command is that ??!!

Thanks in advance
Srini
Be on top.
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,733
Registered: ‎06-21-2000
Message 2 of 5 (33 Views)

Re: Creating Fixed size file on unix

I think 'prealloc' is what you are looking for.

# man prealloc

For more information
Please use plain text.
Honored Contributor
Michael Tully
Posts: 7,905
Registered: ‎04-15-1999
Message 3 of 5 (33 Views)

Re: Creating Fixed size file on unix


prealloc is the command alright. Just make sure you don't run into a problem with ulimit. There is a note about this in the man page.
Anyone for a Mutiny ?
Please use plain text.
Trusted Contributor
avsrini
Posts: 136
Registered: ‎02-26-2002
Message 4 of 5 (33 Views)

Re: Creating Fixed size file on unix

Hi All,
I found that it was prealloc. Anyhow
thanks for the info Patrick. Keep up

Regards
Srini.
Be on top.
Please use plain text.
Honored Contributor
harry d brown jr
Posts: 8,418
Registered: ‎12-12-2000
Message 5 of 5 (33 Views)

Re: Creating Fixed size file on unix

dd if=/dev/zero of=/path_of_file bs=1024k

live free or die
harry
Live Free or Die
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation