Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Install `pv` and put it between input / output only dd commands.
  2.  
  3. *Note*: you cannot use it when you already started `dd`.
  4.  
  5. ###From the package description:
  6.  
  7. > pv - Pipe Viewer - is a terminal-based tool for monitoring the
  8. > progress of data through a pipeline. It can be inserted into any
  9. > normal pipeline between two processes to give a visual indication of
  10. > how quickly data is passing through, how long it has taken, how near
  11. > to completion it is, and an estimate of how long it will be until
  12. > completion.
  13.  
  14. ###Installation
  15.  
  16. sudo apt-get install pv
  17.  
  18. ###Example
  19.  
  20. dd if=/dev/urandom | pv | dd of=/dev/null
  21.  
  22. ###Output
  23.  
  24. 1,74MB 0:00:09 [ 198kB/s] [ <=> ]
  25.  
  26. You could specify the approximate size with the `--size` if you want a time estimation.
  27.  
  28. ###Other uses
  29.  
  30. You can also use it to output to stdout:
  31.  
  32. pv /home/user/bigfile.iso | md5sum
  33.  
  34. ###Output
  35.  
  36. 50,2MB 0:00:06 [8,66MB/s] [=======> ] 49% ETA 0:00:06
  37.  
  38. Note that in this case, `pv` recognizes the size automatically.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement