2012-10-25

Slitaz -- pv


Linux dd Command Show Progress Copy Bar With Status


1.
root@slitaz:~# pv -tpreb /media/raspbian/raspi/2012-08-16-wheezy-raspbian.img | dd of=/dev/sdb
1.81GB 0:08:30 [3.62MB/s] [=================================>] 100%           
3788800+0 records in
3788800+0 records out


2.
root@slitaz:~# tazpkg info pv

Tazpkg information
================================================================================
Package    : pv
Version    : 1.1.4
Category   : misc
Short desc : pipe viewer for monitoring data through a pipeline
Maintainer : allan316@gmail.com
Web site   : http://www.ivarch.com/programs/pv.shtml
================================================================================


3.
root@slitaz:~# pv --help | head
Usage: pv [OPTION] [FILE]...
Concatenate FILE(s), or standard input, to standard output,
with monitoring.

  -p, --progress           show progress bar
  -t, --timer              show elapsed time
  -e, --eta                show estimated time of arrival (completion)
  -r, --rate               show data transfer rate counter
  -b, --bytes              show number of bytes transferred
  -f, --force              output even if standard error is not a terminal


4.
root@slitaz:~# ls -lh /media/raspbian/raspi/2012-08-16-wheezy-raspbian.img
-rw-r--r--    1 tux      tux         1.8G Aug 27 22:56 /media/raspbian/raspi/2012-08-16-wheezy-raspbian.img
root@slitaz:~#