Pipe Viewer – is a terminal-based tool for monitoring the progress of data through a pipeline.

Install Pipe Viewer on Ubuntu:

apt-get install pv

pv Command syntax:

pv filename
pv filename > /path/to/output
pv options filename | command1
pv options filename | command1 > output.file
pv filename | command1
command1 | pv | command2
pv -options input.file | command1 | pv -options > output.file

example command:

jerry@jerry-P5Q-office:/media/fileZone500G/software/作業系統/LINUX$ dd if=drbl-live-xfce-1.0.8-7-amd64.iso |pv -s 378M|ssh jerry@192.168.128.118 "dd of=/home/jerry/test.iso"
755620+0 records in1MB/s] [=================================================================>   ] 96% ETA 0:00:02
755620+0 records out
386877440 bytes (387 MB) copied, 85.2052 s, 4.5 MB/s
 369MB 0:01:25 [4.33MB/s] [=================================================================>   ] 97%
755620+0 records in
755620+0 records out
386877440 bytes (387 MB) copied, 84.7891 s, 4.6 MB/s

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s