Operating System - HP-UX
1752614 Members
4994 Online
108788 Solutions
New Discussion юеВ

Re: Creating Fixed size file on unix

 
SOLVED
Go to solution
avsrini
Trusted Contributor

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.
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: Creating Fixed size file on unix

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

# man prealloc

For more information
Michael Tully
Honored Contributor

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 ?
avsrini
Trusted Contributor

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.
harry d brown jr
Honored Contributor

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