[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trying to understand man page for dd



On 2017-06-01, Ulf Volmer <u.volmer@u-v.de> wrote:
> On 05/28/2017 02:05 PM, JPlews wrote:
>
>>>>     $ dd if=/dev/zero of=/dev/null& pid=$!
>>>>     $ kill -USR1 $pid; sleep 1; kill $pid
>
>> have a look at status=progress
>
> This option does not exist in debian stable.

Would 'pv' help?

 dd if=/dev/zero | pv | of=/dev/null

Apparently if you know the approximate 'size' it will give you will an
ETA.

 dd if=/dev/sdb | pv -s 2G | dd of=DriveCopy1.dd bs=4096

It can also be used directly as in the man page example

 pv file | nc -w 1 somewhere.com 3000

In this latter case it evaluates the file size directly.


> best regards
> Ulf
>
>


-- 
"It might be a vision--of a shell, of a wheelbarrow, of a fairy kingdom on the
far side of the hedge; or it might be the glory of speed; no one knew." --Mrs.
Ramsay, speculating on why her little daughter might be dashing about, in "To
the Lighthouse," by Virginia Woolf.


Reply to: