3 ms·
> pv is the tool I want to use for things like copying images to SD cards but I can never remember the exact syntax needed to get it to show me the percentage
by Aachen 6y ago
> pv is the tool I want to use for things like copying images to SD cards but I can never remember the exact syntax needed to get it to show me the percentage
You're in luck: the "syntax needed" is to literally not use any options:
pv your.img > /dev/sdb
- IgorPartola 6y agoHaha good point. The first time I encountered pv it was in the form of like cat your.img | pv ... > /dev/sdb and then you had to tell it what size to expect and enable it showing the progress bar, etc.
- syncsynchalt 6y agoGood ol' "Useless Use of Cat": http://porkmail.org/era/unix/award.html http://porkmail.org/era/unix/award.html
- Aachen 6y agoTrue, if you pipe a data stream to it, it can't tell what the size is going to be and you'd need the --size option. The progress bar is still default, though.