View Single Post
  #7   (View Single Post)  
Old 3rd December 2015
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: New Zealand
Posts: 2,200

Originally Posted by alex_b83 View Post
Is the size of dd output file always a multiple of bs?
If you add conv=sync:

Pad every input block to the size of the ibs= buffer, appending null bytes. (If either block or unblock is also specified, append <space> characters, rather than null bytes.)
This is in POSIX so it can be reasonably expected to work on most platforms.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote