Operating System - HP-UX
1830899 Members
3096 Online
110017 Solutions
New Discussion

How to Create a Big file ?

 
SOLVED
Go to solution
Hermann Merz_1
Advisor

How to Create a Big file ?

Hi,
what?s the easiest way to create in a script one big file of, for example 50 MByte.
I want to delete this file if the FileSystem is full and recreate it when the Fileystem is empty (Oracle Archive Stuck).

best regards
Update the world
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: How to Create a Big file ?

The command you want is prealloc. To create a 50MB file called FILLER you would:

prealloc FILLER 50000000
Steffi Jones_1
Esteemed Contributor

Re: How to Create a Big file ?

Hello,

one thing that came to my mind is to just copy one of the bigger files from your system to that filesystem.
You could i.e. copy a /stand/vmunix file into that filesystem and name it something else. That file is usually pretty big.

Steffi Jones
Curtis Larson
Trusted Contributor

Re: How to Create a Big file ?

find /usr/dt | cpio -oB > bigfile