4 ms·
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.
by rotifer 4y 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.
- Vecr 4y agoblah | sudo tee /some/file > /dev/null would though. Both are probably fine.
- kelnos 4y agoIf '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 4y agoBut this one would work: blah | sudo sh -c 'cat > /some/file'