System Administration
Showing results for 
Search instead for 
Do you mean 

Creating Fixed size file on unix

SOLVED
Go to Solution
Highlighted
Trusted Contributor [Founder]

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
Honored Contributor [Founder]

Re: Creating Fixed size file on unix

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

# man prealloc

For more information
Honored Contributor [Founder]

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 ?
Trusted Contributor [Founder]

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.
Honored Contributor [Founder]

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