Linux/dd


 * Creating a 10MB files

dd if=/dev/zero of=/tmp/test_zero_10MB bs=1024k count=10 if --> input file of --> output file bs --> block size count --> how many times should repeat the "bs"


 * sample 1

dd if=/dev/zero of=/dev/null& pid=$! kill -USR1 $pid; sleep 1; kill $pid <--- this did not worked for me


 * Checking progress and understanding linux signals

man 7 signal watch -n 1 kill -USR1 $(pgrep -l '^dd$' | tr -d [:alpha:])


 * sample 2

dd if=/dev/zero of=/dev/mapper/dm-0 bs=100M count=100 1>> /tmp/logs_dm-0.logs 2>&1