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 …
-
-
-
Replying to @cybergibbons
dd is useless most of the time. You can just pipe to/from block devices normally, e.g. with cat. pv is smart enough to query stdin *or* stdout device size and use it to show the progress bar and determine ETA. zcat file.img.gz | pv > /dev/sdc will use size of /dev/sdc.
3 replies 0 retweets 3 likes -
Replying to @marcan42 @cybergibbons
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
2 replies 0 retweets 8 likes -
Replying to @hedgeberg @marcan42
I always use: cat /dev/mtd1 > mtd1.bin Remember seeing dd during some training and not getting why it was used.
1 reply 0 retweets 1 like -
Replying to @cybergibbons @marcan42
I always just accepted it as gospel because I've literally only ever seen dd advised for use for these kinds of thing ever. This is really upsetting.
2 replies 0 retweets 1 like
Honestly these days I'm more likely to use dd to inject bytes into a file at an offset than with block devices. I want a tool that just does that, the seek/skip feature for input or output (in various units please) without the stupid. It probably exists already somewhere.
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.