-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Mar 07, 2017 at 10:55:01AM +0200, Teemu Likonen wrote: > to...@tuxteam.de [2017-03-07 09:35:06+01] wrote: > > > dd comes in handy whin you know how much to copy. So this idiom makes > > sense > > > > dd if=/dev/zero of=lotsofnull bs=1024 count=1024 # copy 1M of zeros > > That particular thing can be made faster without transferring any data: > > $ dd obs=1M count=0 seek=1 of=file > 0+0 records in > 0+0 records out > 0 bytes (0 B) copied, 1,1289e-05 s, 0,0 kB/s > > $ ls -lh file > -rw-r--r-- 1 dtw dtw 1,0M 2017-03-07 10:52:14 file
Provided you want holes in it. regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAli+doIACgkQBcgs9XrR2kZsVwCeONbK4j0nQ8NSfjsuR35nDfdt GPQAniS6O9XP51LjWgAo3lggqBK40T1r =DxLy -----END PGP SIGNATURE-----