Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using DD to create a file of fixed size

Status
Not open for further replies.

bazil2

Technical User
Feb 15, 2010
148
DE
(Elelmentary user)

I would like to create a 50GB file on the server.

dd if=/dev/zero of=/path/to_my/file/test bs=10000000000 count=1

This gives me a file of 1GB.

Is there anyway of making the input more 'human friendly', like:

mkfile 50GB test

Best regards
 
This:

mkfile 50g test

works using Solaris 10. Can you man mkfile?

The internet - allowing those who don't know what they're talking about to have their say.
 
Unfortunately not!

I previously had an IRIX server and this part of the operating system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top