]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(dd invocation): dd now outputs total bytes,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Nov 2004 06:50:23 +0000 (06:50 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Nov 2004 06:50:23 +0000 (06:50 +0000)
seconds, and bytes per second.

doc/coreutils.texi

index 925cba0ee666db05b5e9e69226dd8c2092ca78a5..cf8e9369c3939dc8d01cca3c2f41367c8038a0d7 100644 (file)
@@ -6863,20 +6863,21 @@ tape=/dev/rmt/0
 @end example
 
 Note that sending a @samp{SIGUSR1} signal to a running @command{dd}
-process makes it print to standard error the number of records read
-and written so far, then to resume copying.  In the example below,
+process makes it print I/O statistics to standard error,
+then to resume copying.  In the example below,
 @command{dd} is run in the background to copy 10 million blocks.
-The @command{kill} command makes it output the first pair of
-intermediate record counts,
-and when @command{dd} completes, it outputs the final pair.
-
-@example
-$ dd if=/dev/zero of=/dev/null count=10M & pid=$!
-$ kill -s USR1 $pid; sleep 99
-5403604+0 records in
-5403604+0 records out
-10485760+0 records in
-10485760+0 records out
+The @command{kill} command makes it output intermediate I/O statistics,
+and when @command{dd} completes, it outputs the final statistics.
+
+@example
+$ dd if=/dev/zero of=/dev/null count=10MB & pid=$!
+$ kill -s USR1 $pid; wait $pid
+4111640+0 records in
+4111639+0 records out
+2.1GB copied in 7.95411s (265MB/s)
+10000000+0 records in
+10000000+0 records out
+5.1GB copied in 19.3794s (264MB/s)
 @end example
 
 @exitstatus