{"id":308,"date":"2019-10-21T19:43:15","date_gmt":"2019-10-21T17:43:15","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=308"},"modified":"2019-10-21T19:43:15","modified_gmt":"2019-10-21T17:43:15","slug":"org_dd","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=308","title":{"rendered":"DD"},"content":{"rendered":"<p>DD(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DD(1)<\/p>\n<p>NAME<\/p>\n<p>dd &#8211; convert and copy a file<\/p>\n<p>SYNOPSIS<\/p>\n<p>dd [OPERAND]&#8230;<br \/>\ndd OPTION<\/p>\n<p>DESCRIPTION<\/p>\n<p>Copy a file, converting and formatting according to the operands.<\/p>\n<p>bs=BYTES<br \/>\nread and write up to BYTES bytes at a time<\/p>\n<p>cbs=BYTES<br \/>\nconvert BYTES bytes at a time<\/p>\n<p>conv=CONVS<br \/>\nconvert the file as per the comma separated symbol list<\/p>\n<p>count=N<br \/>\ncopy only N input blocks<\/p>\n<p>ibs=BYTES<br \/>\nread up to BYTES bytes at a time (default: 512)<\/p>\n<p>if=FILE<br \/>\nread from FILE instead of stdin<\/p>\n<p>iflag=FLAGS<br \/>\nread as per the comma separated symbol list<\/p>\n<p>obs=BYTES<br \/>\nwrite BYTES bytes at a time (default: 512)<\/p>\n<p>of=FILE<br \/>\nwrite to FILE instead of stdout<\/p>\n<p>oflag=FLAGS<br \/>\nwrite as per the comma separated symbol list<\/p>\n<p>seek=N skip N obs-sized blocks at start of output<\/p>\n<p>skip=N skip N ibs-sized blocks at start of input<\/p>\n<p>status=WHICH<br \/>\nWHICH info to suppress outputting to stderr; &#8216;noxfer&#8217;<br \/>\nsuppresses transfer stats, &#8216;none&#8217; suppresses all<\/p>\n<p>N and BYTES may be followed by the following multiplicative suffixes:<br \/>\nc =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024,<br \/>\nxM =M GB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E,<br \/>\nZ, Y.<\/p>\n<p>Each CONV symbol may be:<\/p>\n<p>ascii\u00a0 from EBCDIC to ASCII<\/p>\n<p>ebcdic from ASCII to EBCDIC<\/p>\n<p>ibm\u00a0\u00a0\u00a0 from ASCII to alternate EBCDIC<\/p>\n<p>block\u00a0 pad newline-terminated records with spaces to cbs-size<\/p>\n<p>unblock<br \/>\nreplace trailing spaces in cbs-size records with newline<\/p>\n<p>lcase\u00a0 change upper case to lower case<\/p>\n<p>ucase\u00a0 change lower case to upper case<\/p>\n<p>sparse try to seek rather than write the output for NUL input blocks<\/p>\n<p>swab\u00a0\u00a0 swap every pair of input bytes<\/p>\n<p>sync\u00a0\u00a0 pad every input block with NULs to ibs-size; when used with<br \/>\nblock or unblock, pad with spaces rather than NULs<\/p>\n<p>excl\u00a0\u00a0 fail if the output file already exists<\/p>\n<p>nocreat<br \/>\ndo not create the output file<\/p>\n<p>notrunc<br \/>\ndo not truncate the output file<\/p>\n<p>noerror<br \/>\ncontinue after read errors<\/p>\n<p>fdatasync<br \/>\nphysically write output file data before finishing<\/p>\n<p>fsync\u00a0 likewise, but also write metadata<\/p>\n<p>Each FLAG symbol may be:<\/p>\n<p>append append mode (makes sense only for output; conv=notrunc<br \/>\nsuggested)<\/p>\n<p>direct use direct I\/O for data<\/p>\n<p>directory<br \/>\nfail unless a directory<\/p>\n<p>dsync\u00a0 use synchronized I\/O for data<\/p>\n<p>sync\u00a0\u00a0 likewise, but also for metadata<\/p>\n<p>fullblock<br \/>\naccumulate full blocks of input (iflag only)<\/p>\n<p>nonblock<br \/>\nuse non-blocking I\/O<\/p>\n<p>noatime<br \/>\ndo not update access time<\/p>\n<p>nocache<br \/>\ndiscard cached data<\/p>\n<p>noctty do not assign controlling terminal from file<\/p>\n<p>nofollow<br \/>\ndo not follow symlinks<\/p>\n<p>count_bytes<br \/>\ntreat &#8216;count=N&#8217; as a byte count (iflag only)<\/p>\n<p>skip_bytes<br \/>\ntreat &#8216;skip=N&#8217; as a byte count (iflag only)<\/p>\n<p>seek_bytes<br \/>\ntreat &#8216;seek=N&#8217; as a byte count (oflag only)<\/p>\n<p>Sending a USR1 signal to a running &#8216;dd&#8217; process makes it print I\/O<br \/>\nstatistics 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<br \/>\n(9.4 GB) copied, 34.6279 seconds, 271 MB\/s<\/p>\n<p>Options are:<\/p>\n<p>&#8211;help display this help and exit<\/p>\n<p>&#8211;version<br \/>\noutput version information and exit<\/p>\n<p>GNU coreutils online help: &lt;http:\/\/www.gnu.org\/software\/coreutils\/&gt;<br \/>\nReport dd translation bugs to &lt;http:\/\/translationproject.org\/team\/&gt;<\/p>\n<p>AUTHOR<\/p>\n<p>Written by Paul Rubin, David MacKenzie, and Stuart Kemp.<\/p>\n<p>COPYRIGHT<\/p>\n<p>Copyright \u00a9 2014 Free Software Foundation, Inc.\u00a0 License GPLv3+: GNU<br \/>\nGPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;.<br \/>\nThis is free software: you are free to change and redistribute it.<br \/>\nThere is NO WARRANTY, to the extent permitted by law.<\/p>\n<p>SEE ALSO<\/p>\n<p>The full documentation for dd is maintained as a Texinfo manual.\u00a0 If<br \/>\nthe info and dd programs are properly installed at your site, the<br \/>\ncommand<\/p>\n<p>info coreutils &#8216;dd invocation&#8217;<\/p>\n<p>should give you access to the complete manual.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the coreutils (basic file, shell and text<br \/>\nmanipulation utilities) project.\u00a0 Information about the project can<br \/>\nbe found at \u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, see<br \/>\n\u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 This page was obtained from<br \/>\nthe tarball coreutils-8.23.tar.xz fetched from<br \/>\n\u27e8http:\/\/www.gnutls.org\/download.html\u27e9 on 2014-12-30.\u00a0 If you discover<br \/>\nany rendering problems in this HTML version of the page, or you<br \/>\nbelieve there is a better or more up-to-date source for the page, or<br \/>\nyou have corrections or improvements to the information in this<br \/>\nCOLOPHON (which is not part of the original manual page), send a mail<br \/>\nto\u00a0man-pages@man7.org<\/p>\n<p>GNU coreutils 8.23\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 December 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DD(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DD(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DD(1) NAME dd &#8211; convert and copy a file SYNOPSIS dd [OPERAND]&#8230; dd OPTION DESCRIPTION Copy a file, converting and formatting according to the operands. bs=BYTES read and write up to BYTES bytes at a time cbs=BYTES convert BYTES bytes at a time conv=CONVS convert the file as per the comma separated [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-308","post","type-post","status-publish","format-standard","hentry","category-shell"],"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/308\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}