dd if=<input> | pv | dd of=<output>
to get a count of bytes passing through, or pv <input> | dd of=<output>
to get actual completion progress. For tarchives, pv <tarchive> | tar x
Compression progress pv <file> | bzip2 > <file>.bz2 dd if=<input> | pv | dd of=<output>
to get a count of bytes passing through, or pv <input> | dd of=<output>
to get actual completion progress. For tarchives, pv <tarchive> | tar x
Compression progress pv <file> | bzip2 > <file>.bz2tar c foo | pv | gzip | socat - tcp-listen:9999
socat tcp:bar:9999 - | pv > foo.tar.gz
If pv shows that you aren’t saturating your network and are cpu limited, replace gzip with lzop. If vice versa, replace gzip with something more aggressive.
tar c foo | pv -cN raw | gzip | pv -cN compressed | whatever else
It’s handy to see multiple progress bars at once.
Try
cp $BIGFILE ${BIGFILE}_1 & pv --watchfd $(pidof cp)