pv¶
pv - monitor the progress of data through a pipe
This can be used in place of dd or dcfldd in some cases, such as copying disks or files. It's also useful for including with nc so you can see stats about the flow of that pipe.
Examples¶
Show the average growth rate of logs¶
Write a disk image to usb¶
This can be used in place of dd if=file of=/dev/disk
Show the number of k8s pods going into NotReady per second¶
kubectl get pods -A --watch-only |
grep --line-buffered NotReady |
pv --line-mode --timer --rate --average-rate --wait --force >/dev/null