top | item 33325362

(no title)

rotifer | 3 years ago

I rarely use dd, but my most common use might be:

    blah | sudo dd of=/some/file
where:

    blah | sudo cat > /some/file
wouldn't work.

discuss

order

Vecr|3 years ago

    blah | sudo tee /some/file > /dev/null
would though. Both are probably fine.

kelnos|3 years ago

If 'blah' outputs binary data, then that would work, but would spew garbage to the terminal. Piping to 'dd' is probably more efficient regardless.

Self-Perfection|3 years ago

But this one would work:

blah | sudo sh -c 'cat > /some/file'