1828577 Members
2326 Online
109982 Solutions
New Discussion

dd comand

 
SOLVED
Go to solution
Jees Joy
Frequent Advisor

dd comand

Hi Everybody

I want to generate a huge file to test something, infact with the help of dd comand we can create it; but I forgot the comand syntax, so that it generates a huge file with nothing inside that could someone help me out

Thanks and Regards
Jees Joy
2 REPLIES 2
Peter Nikitka
Honored Contributor
Solution

Re: dd comand

Hi,

dd if=/dev/zero of=yourfile bs=1024k count=wanted_no_of_magabytes

or

dd if=/dev/random of=yourfile bs=1024k count=wanted_no_of_magabytes

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"
Jees Joy
Frequent Advisor

Re: dd comand

Thanks for the quick TAT