Taking an image of a disk, skipping errors:
pv -EEpa /dev/nvme0n1 > /media/mint/Backups/nvme0n1.disk
Writing an image back to a disk:
pv disk-image.img > /dev/your/disk/device
Zeroing a disk:
pv < /dev/zero > /dev/your/disk/device
(Linux only): Watching file descriptor 3 opened by another process 1234:
pv -d 1234:3
(Linux only): Watching all file descriptors used by process 1234:
pv -d 1234
Some suggested common switch combinations:
pv -ptebar
Show a progress bar, elapsed time, estimated completion time, byte counter, average rate, and current rate.
pv -betlap
Show a progress bar, elapsed time, estimated completion time, line counter, and average rate, counting lines instead of bytes.
pv -t Show only the elapsed time - useful as a simple timer, e.g. sleep 10m | pv -t.
pv -pterb
The default behaviour: progress bar, elapsed time, estimated completion time, current rate, and byte counter.
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter