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
Ah, ok. I nearly always just use cat and not dd in that case. Was thinking about offset/count mainly.
1 reply 0 retweets 0 likes
Replying to @cybergibbons
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.
0 replies
1 retweet
1 like
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.