News for hackers. Stuff that matters.
Re:Dd is not a disk writing tool (2015) by rsync on Sunday January 08, 2017 @02:18PM (#13351383)
"Yes "D" is not for disk/drive/device/..."

But that's the very beauty of unix!

If you can find a way to use 'dd' for disk/drive/device you can use it in interesting new manners (pipelines, etc.) and have very good confidence that it won't break in weird ways. It will do the small, simple thing it is supposed to do even if you are abusing it horribly.

Like this, for instance:

  pg_dump -U postgres db | ssh [email protected] "dd of=db_dump"
Re:Dd is not a disk writing tool (2015) by takeda on Sunday January 08, 2017 @03:50PM (#13351933)
Is there a benefit to use dd over cat in this case?
Re:Dd is not a disk writing tool (2015) by circuit_breaker on Sunday January 08, 2017 @06:43PM (#13352832)
You could use it to rate limit... or arbitrarily set block sizes per use case. I've used it for the former when doing 'over the wire' backups through ssh