Useful tips

Short articles with tips and solutions.

Using dd as a Swiss Army knife

Here are some useful examples of how a programmer (but not only) can use the dd command as a Swiss Army knife. Many of us are used to use a command similar to this one:

  1. dd if=/dev/sda of=sda.img bs=1k

This is a faster version of the cat command because of the bs= option. But dd can do much more, even for a programmer. Here are some examples of dd usage that I find useful as a debugging aid:

Syndicate content