(Copied from the blog ‘IT from All Angles’ by Matthew Mattoon)

PV is a command that shows a progress bar 
Options are 
   p – progress
   t – timer
   r – rate
   e – eta 
   b – bytes
   s – size (default is in bytes) of the transfer

# dd if=/root/test.file 2>/dev/null | pv -tpreb -s 1024M | dd of=/root/test.file2 2>/dev/null
1GB 0:00:06 [ 148MB/s] [=================================>] 100%
Advertisements