In Linux how can I create a large file with a given text or hex pattern (Like DEADBEEFDEADBEEFDEADBEEF ....)
I know dd can be used to create large files but it doesn't write desired text or hex pattern
dd if=/dev/urandom of=/tmp/bigfile bs=blocksize count=size
or
dd if=/dev/zero of=/tmp/bigfile bs=blocksize count=size
while true ; do printf "DEADBEEF"; done | dd of=/tmp/bigfile bs=blocksize count=size iflag=fullblock