Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Fixed size file on unix

SOLVED
Go to solution
Highlighted
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
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