diff --git a/sheets/dd b/sheets/dd index 5caa198..a63ff9e 100644 --- a/sheets/dd +++ b/sheets/dd @@ -1,5 +1,8 @@ -# Read from {/dev/urandom} 2*512 Bytes and put it into {/tmp/test.txt} -# Note: both iterations each read 512 Bytes (the selected block size). +# dd +# Convert and copy a file (AKA: Destroyer of Disks) + +# Read from `/dev/urandom`, 2*512 Bytes, and put it into `/tmp/test.txt`. +# Note: each iteration reads 512 bytes (the selected block size). dd if=/dev/urandom of=/tmp/test.txt count=2 bs=512 # Watch the progress of dd(1). @@ -20,10 +23,10 @@ done # installed with the following command: apt-get install pv zenity ( pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror -) 2>&1 | zenity --title 'Running dd command (cloning), please wait...' --progress +) 2>&1 | zenity --title 'Cloning with dd(1) -- please wait...' --progress # Watch the progress of dd(1) with the built-in `progress` functionality, - -# introduced in coreutils v8.24. +# introduced in CoreUtils v8.24. dd if=/dev/zero of=/dev/null bs=128M status=progress # DD with "graphical" return