System Administration
Showing results for 
Search instead for 
Do you mean 

Creating Fixed size file on unix

SOLVED
Go to Solution
Highlighted
Trusted Contributor 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
Honored Contributor Honored Contributor

Re: Creating Fixed size file on unix

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

# man prealloc

For more information
Honored Contributor 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 ?
Trusted Contributor 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.
Honored Contributor 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