Peter Krumins has a post about pv (Pipe Viewer, which others here have mentioned) on his blog:
A Unix Utility You Should Know About: Pipe Viewer:
41–42 of 42 posts
A Unix Utility You Should Know About: Pipe Viewer:
Usually I have used pv. https://linux.die.net/man/1/pv cp pv source > target tar tar czf images.tar.gz image1 image2 image3 | pv > target gzip pv source | gzip > target.gz # or gzip
you can give it a pid too -d PID[:FD], --watchfd PID[:FD] Instead of transferring data, watch file descriptor FD of process PID, and show its progress. The pv process will exit when FD either changes to a different file, changes read/write mode, or is closed; other data transfer modifiers - and remote control - may not be used with this option. If only a PID is specified, then that process will be watched, and all re…