Generate file of certain size

From RHS Wiki
Jump to navigation Jump to search
dd if=/dev/zero of=output.dat  bs=24M  count=1

or

dd if=/dev/zero of=output.dat  bs=1M  count=24