{"id":209,"date":"2010-03-26T21:16:25","date_gmt":"2010-03-26T20:16:25","guid":{"rendered":"http:\/\/kb.toderu.ro\/?p=209"},"modified":"2010-03-26T21:16:25","modified_gmt":"2010-03-26T20:16:25","slug":"dd-displaying-statistics-while-running","status":"publish","type":"post","link":"https:\/\/kb.toderu.ro\/?p=209","title":{"rendered":"dd displaying statistics while running"},"content":{"rendered":"<p>\t\t\t\tEver wondered how many bytes of space are there left to transfer while doing a dd with a large image ?<\/p>\n<p>Well, dd has a built-in trick in order to help you doing this.<\/p>\n<p>Right from its man page, introducing now the magic :<\/p>\n<blockquote><p>Sending a USR1 signal to a running `dd&#8217; process makes it print I\/O statistics to standard error and then resume copying.<\/p>\n<p>$ dd if=\/dev\/zero of=\/dev\/null&amp; pid=$!<br \/>\n$ kill -USR1 $pid; sleep 1; kill $pid<\/p>\n<p>18335302+0 records in 18335302+0 records out 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB\/s<\/p><\/blockquote>\n<p>Pretty neat, huh ?\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered how many bytes of space are there left to transfer while doing a dd with a large image ? Well, dd has a built-in trick in order to help you doing this. Right from its man page, introducing now the magic : Sending a USR1 signal to a running `dd&#8217; process makes it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":0,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}