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
The one annoying thing about that is that in order to write to block devices using cat or pv, your shell must be running as root - "sudo cat" is not enough. So I just use dd and save myself the hassle.
1 reply 0 retweets 0 likes
tee also works for this (and is the canonical way for config files and the like, though for writing to block devices it's a bit wasteful). Or you can `sudo sh -c '...'`. But really, just `sudo -i` if you're going to be writing to block devices anyway.
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.