* 2021-07-02 12:52:53+0200, Thomas Schmitt wrote: > Teemu Likonen wrote: >> For this new subject I will add another use: quickly create empty file >> of specific size, for example 5 * 1024 bytes: >> $ dd of=empty obs=1024 seek=5 count=0 > > Not to forget creation of sparse files with few disk consumption.
My example above already does that. $ dd of=empty obs=100G seek=1 count=0 $ ls -gGlhs empty 0 -rw-r--r-- 1 100G 2021-07-02 14:21:18 empty Zero blocks actually allocated, so far. -- /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
signature.asc
Description: PGP signature