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 @cybergibbons
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.
3 replies 0 retweets 3 likes -
dd started as a joke about the syntax of IBM mainframe JCL program definitions (hence the silly a=b format). It became obsolete on OSes like Linux where block devices can be accessed byte-wise just fine and behave totally normally. But everyone still thinks "dd for blockdevs".
1 reply 0 retweets 4 likes -
Replying to @marcan42 @cybergibbons
knowing this makes me so upset on so many levels.
1 reply 0 retweets 5 likes
Please don't ask me why I have 80-column EBCDIC record format JCL job definition files^Wdataset members for compiling COBOL programs on my drive.pic.twitter.com/1lqdrkEifn
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.