How to create a file with a size

0
963

Command

dd if=/dev/zero of=upload_test bs=<file_size> count=<file size in megabyte>

example

dd if=/dev/zero of=upload_test bs=1G count=15

file_size could be 1M or 1G and count is the size.