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 -- /// Teemu Likonen - .-.. <https://keybase.io/tlikonen> // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
signature.asc
Description: PGP signature