3 ms·
or just use `cp --sparse=always` if it's from one file to another
by jhugo 4y ago
or just use `cp --sparse=always` if it's from one file to another
- inopinatus 4y agoThat is not so portable, so I recommend sticking with dd.
- jhugo 4y agoYup, `dd` helps in a lot of situations when you need portability, not just this one. Commands like `cp --sparse=always` aren't worth such a blanket disrecommendation though; if you are working directly at a console as opposed to scripting you typically don't need portability.
- inopinatus 4y agoAgain, most of the consoles I work at don’t use GNU coretools.
- jhugo 4y agoThen you obviously can't use this, but many people reading my suggestion can.