4 ms·
Why not using pv? http://www.ivarch.com/programs/pv.shtml http://www.ivarch.com/programs/pv.shtml
by notorandit 3y ago
Why not using pv?
http://www.ivarch.com/programs/pv.shtml http://www.ivarch.com/programs/pv.shtml
- colpabar 3y agowow I usually just use rsync with the progress flag but this looks way cooler. thanks!
- tylerchr 3y agopv is invaluable but my issue with it is it’s only useful if you think to include it before you run the command. Usually the thought doesn’t occur to me until I have some runaway cp or dd and I want to be reassured that it’s going to be done soon. For that case that this looks super interesting.
- rlpb 3y agoYou can attach pv to an existing process. IIRC it's the -p option.
- everybodyknows 3y ago-p is same as "--progess": https://linux.die.net/man/1/pv https://linux.die.net/man/1/pv
- rlpb 3y agoAh, it was -d I was thinking of. Anyway, the point is that you can run pv retrospectively just fine while your slow command is running.