Ubuntu tips and trials
Creating a new file of any size 
Friday, November 16, 2007, 23:12
Posted by Administrator
Ever wanted to test something and all you needed was a file of an exact size. It's very easy to just create a new file of any size with this:

dd if=/dev/zero of=myfile bs=1024 count=1024


This will create a new file with a size of exactly 1MB (1024k) You can easily change the count to reflect any value!

add comment   |  permalink   |   ( 0 / 0 )

<<First <Back | 1 | 2 | 3 | 4 | 5 | 6 | Next> Last>>