Create dummy file

This is how you create a dummy file (without any real content). Great to test uploads, or anything that requires certain sized files, but you just don't have them ready.

dd if=/dev/zero of=test.bin bs=10000000 count=1

if defines the file you read in content from, of is the output file. bs is the size of the file (amount of data read in) that will be created. count defines how many blocks you want to copy, in this case 1 is fine.

Comments

Post new comment