1833777 Members
2090 Online
110063 Solutions
New Discussion

mkfile on hpux 11.11

 
SOLVED
Go to solution
David_711
Frequent Advisor

mkfile on hpux 11.11

Somebody know if on hpux 11.11 i can use the command mkfile? if not, what command i can use?
Thanks
5 REPLIES 5
Jeff_Traigle
Honored Contributor

Re: mkfile on hpux 11.11

Not as easy to remember as mkfile, but the HP-UX equivalent is prealloc.
--
Jeff Traigle
Steven E. Protter
Exalted Contributor

Re: mkfile on hpux 11.11

David,

What are you trying to accomplish. I can't recall what mkfile is on any platform.

make or gmake is used to compile software. That is all that comes to mind.

Good Luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: mkfile on hpux 11.11

Hi,

in Solaris the command
mkfile 100m filename
creates a file 'filename' of size 100MB.

The above mentioned HP-UX pendant would read as
prealloc filename $((100*1024*1024))

Guessed I right?

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Giri Sekar.
Trusted Contributor

Re: mkfile on hpux 11.11

mkfile and truncate for Solaris. prealloc and truncate for HP-UX

Thanks

Giri Sekar
"USL" Unix as Second Language
Asif Sharif
Honored Contributor
Solution

Re: mkfile on hpux 11.11

Hi David,

The following example preallocates 50000 bytes for the file myfile:

#prealloc myfile 50000

http://docs.hp.com/en/B9106-90007/prealloc.1.html

Regards,
Asif Sharif
Regards,
Asif Sharif