I apologize in advance if this question sounds stupid or has been answered
already. I need to create large dummy files for testing. I would like to
know if there is a way to do it using C on OpenBSD.
This is what I want to achieve. I tried looking for "mkfile" command, but I
couldn't find it either.
dd if=/dev/zero of=/testing/file0 bs=512 count=65536
Thanks in advance.
dd if=/dev/zero of=/testing/file0 seek=1m count=1 bs=1
use seek=1024m for even larger files, and the best of it all, it
only takes a handful of bytes on disk, since it is sparse. Will still
read back zeros all the way if you "use" it later.
To our sweethearts and wives. May they never meet. -- 19th century toast