Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
photon-torpedo
on May 23, 2022
|
parent
|
context
|
favorite
| on:
Useless Use of "dd" (2015)
Careful, your #2 and #3 are incorrect -- skip and seek operate with blocks, not bytes. So your #2 would copy 32 bytes after the first 32kB of data, and #3 would write 512 bytes at position 5120k.
_flux
on May 23, 2022
|
next
[–]
Btw, there are iflags in Gnu dd to work in bytes as well. I have ddbytes aliased to dd iflag=count_bytes,skip_bytes oflag=seek_bytes .
dredmorbius
on May 23, 2022
|
prev
[–]
Thanks. Most of that was from memory and not tested.
The specific recipies should be vetted. The stated goals
can
be achieved with proper invocation.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: