On Fri 02 Jul 2021 at 13:35:17 (+0200), tomas@tuxteam.de wrote:
> On Fri, Jul 02, 2021 at 07:31:24AM -0400, Greg Wooledge wrote:
> > On Fri, Jul 02, 2021 at 09:49:23AM +0200, tomas@tuxteam.de wrote:
> > > sudo dd of=/etc/hosts oflags=append
> >
> > This appears to be a typo for "oflag=append", which is a GNU extension,
> > not part of the standard POSIX dd. No wonder I didn't know about it. ;-)
> >
> > The bullseye version of GNU coreutils dd also gives a warning message
> > with this particular flag:
> >
> > unicorn:~$ echo g | dd of=foo oflag=append
> > dd: you probably want conv=notrunc with oflag=append
> > 0+1 records in
> > 0+1 records out
> > 2 bytes copied, 9.141e-05 s, 21.9 kB/s
> >
> > Not sure if that's unique to bullseye. But anyway, yes, the warning
> > is accurate; without conv=notrunc, my test file "foo" got overwritten
> > with just the "g".
>
> Eek. Thanks.
This reminds me of the sentiment expressed in
https://lists.debian.org/debian-user/2019/08/msg01454.html
Cheers,
David.