Re:dd built-in progress introduced in coreutils 8.24
by brynet on Sunday January 10, 2016 @09:41PM
(#10878446)
On BSD, unlike Linux, many utilities including dd(1) will dump a progress report when receiving SIGINFO. This was traditionally bound to ^T in shells, either by default or using stty(1).
[ Parent
| on HN ]
Re:dd built-in progress introduced in coreutils 8.24
by justin_vanw on Sunday January 10, 2016 @10:11PM
(#10878544)
It's SIGUSR1 on Linux, however there is no signal bound to ^T in Linux, nor is it apparently possible to bind new ones.
`killall -USR1 dd` works like a charm, or for the impatient: watch killall -USR1 dd
Re:dd built-in progress introduced in coreutils 8.24
by oxplot on Monday January 11, 2016 @02:20AM
(#10879338)
This example highlights a very useful alternative function of `watch`: to simply run a command on regular intervals without caring about the output.
Re:dd built-in progress introduced in coreutils 8.24
by agnivade on Tuesday January 12, 2016 @10:49PM
(#10892210)
Yea, but its a pain to open another tab and run another command and switch back to this tab to see the progress.
Why they didn't give a progress bar in the first place beats me.
Re:dd built-in progress introduced in coreutils 8.24
by echochar on Sunday January 10, 2016 @10:51PM
(#10878674)
progress(1) is a separate utility on BSD; one of my favorites. (Although it is also built in to BSD ftp.)
I regularly use progress with dd, tar and other utilities.
At least one BSD dd now has a "msgfmt" option that outputs parseable, printf-style format strings.
Truthfully, I prefer it when these basic utilities are static except for fixing bugs. Using the new features in scripts means the scripts might lose some portability.
Re:dd built-in progress introduced in coreutils 8.24
by crishoj on Monday January 11, 2016 @12:16AM
(#10878964)
There's also the pv(1) utility on Linux and OS X Homebrew:
DESCRIPTION
pv shows the progress of data through a pipeline by giving infor-
mation such as time elapsed, percentage completed (with progress
bar), current throughput rate, total data transferred, and ETA.
To use it, insert it in a pipeline between two processes, with the
appropriate options. Its standard input will be passed through to
its standard output and progress will be shown on standard error.
(edit: formatting)
Re:dd built-in progress introduced in coreutils 8.24
by whalesalad on Sunday January 10, 2016 @11:01PM
(#10878707)
I use this often on OS X :)