Pv
From Christoph's Personal Wiki
Revision as of 22:09, 6 March 2015 by Christoph (Talk | contribs) (New page: '''<code>pv</code>''' ('''P'''ipe '''V'''iewer) is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two pro...)
pv
(Pipe Viewer) is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.
Additional support is available for multiple instances working in tandem, to given a visual indicator of relative throughput in a complex pipeline:
$ pv -cN source < foobar.tar.bz2 | bzcat | pv -cN bzcat | gzip -9 | pv -cN gzip >foobar.tar.gz source: 7.32MB 0:00:05 [ 1.3MB/s] [===================> ] 50% ETA 0:01:23 gzip: 8.96MB 0:00:05 [1.56MB/s] [ <=> ] bzcat: 45.3MB 0:00:05 [7.91MB/s] [ <=> ]
The "foobar.tar.bz2
" tarball has been converted from bzip2 compression to gzip.