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 hn newest 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'
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.
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.
Vecr|3 years ago
kelnos|3 years ago
Self-Perfection|3 years ago
blah | sudo sh -c 'cat > /some/file'