# cat /etc/centos-release CentOS release 6.4 (Final) # rpm -qi pv Name : pv Relocations: (not relocatable) Version : 1.1.4 Vendor: Fedora Project Release : 3.el6 Build Date: Mon 05 Jul 2010 09:29:34 PM JST Install Date: Sat 15 Sep 2012 02:22:36 PM JST Build Host: x86-17.phx2.fedoraproject.org Group : Development/Tools Source RPM: pv-1.1.4-3.el6.src.rpm Size : 68426 License: Artistic 2.0 Signature : RSA/8, Tue 06 Jul 2010 11:11:06 AM JST, Key ID 3b49df2a0608b895 Packager : Fedora Project URL : http://www.ivarch.com/programs/pv.shtml Summary : A tool for monitoring the progress of data through a pipeline Description : PV ("Pipe Viewer") is a 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.CentOS 6 の場合、EPEL に収録されています。
使用例です。
# dd if=backup.sdX bs=64k | pv --rate-limit 35m --buffer-size 64k | dd of=/dev/sdX bs=1M oflag=direct 124GB 1:03:10 [33.9MB/s] [ <=> ]この例では、pv の出力を 35MB/s に制限しています。
隠れた逸品と思うのですが、ネーミングが覚えにくいと思う。
0 件のコメント:
コメントを投稿