On 17/05/21 6:30 pm, to...@tuxteam.de wrote:
This is one point. The other, which adds more convenience is that
dd has an explicit argument for (input and) output file name, whereas
cat relies on redirection. This becomes relevant when you try to

   sudo cat thing > that_other_thing

and realise that the ">" is *not* in the sudo context (and what
you would have to do to "fix" that).

Instead,

   sudo dd if=thing of=this_other_thing

Just Works out of the box. More relevant when doing ">>" (use
dd's oflag=append then).

And if you already have a long pipeline in your command history, that didn't work because of the above issue, you can use:

... |sudo dd of=this_other_thing

Note: I'm not sure what the difference is between that_other_thing and this_other_thing :-)

Richard

Reply via email to