Dummy file

Create a dummy file of repeated lines with yes and head, or random bytes from /dev/urandom.

yes <text> | head -<no of lines> > <output file>

Example:

yes 123456789 | head -10000 > dummy.file

Linefeed adds one byte each.

head -c 100000 /dev/urandom > dummy
Updated: 2026 Aug 19