The command
progress -zf file.tar.gz tar xf -
will extract the
file.tar.gz displaying the progress bar as time passes:
0% | | 0 0.00 KiB/s --:-- ETA
40% |******** | 273 KiB 271.95 KiB/s 00:01 ETA
81% |*********************** | 553 KiB 274.61 KiB/s 00:00 ETA
100% |*******************************| 680 KiB 264.59 KiB/s 00:00 ETA
If it is preferred to monitor the progress of the decompression process (unlikely), then
progress -f file.tar.gz tar zxf -
could be used.
The command
dd if=/dev/rwd0d ibs=64k | \
progress -l 120g dd of=/dev/rwd1d obs=64k
will copy the 120 GiB disk
wd0 (
/dev/rwd0d) to
wd1 (
/dev/rwd1d), displaying a progress bar during the operation.