I use pv(1) all the time. Not a standard command, but everyone should install it and start using it. It replaces dd for most use cases and Just Does The Right Thing by default. It's part of my required packages list on every system, along with strace, htop, iotop, and vim.https://twitter.com/Yeah1Whatever/status/991568978479910913 …
-
-
Ah, ok. I nearly always just use cat and not dd in that case. Was thinking about offset/count mainly.
-
pv can do count, but not offset. Also pv uses splice(2), which means it's way faster than dd, and you don't have to worry about coming up with an efficient block size.
End of conversation
New conversation -
-
-
WHY THE FUCK HAVE I BEEN DOING THIS FOR SO LONG: dd if=/dev/bullshit1 | pv | dd of=/dev/bullshit2 I SAW THAT RECOMMENDED SO MANY PLACES. PV TOTALLY REPLACES DD? WHY IN THE HELL WOULD SOMEONE RECOMMEND THIS
-
You can just use cat (or nothing if just redirecting around another command). dd is total and utter cargo cult unless you need the seek/skip options. And even for that it's crap, because there's no reason for seek/skip to be in units of the transfer blocksize. And it's slow.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.