System Management
A partition image was saved earlier with dd if=/dev/sdb1 bs=4M | gzip > /backup/sdb1.img.gz. The administrator must now restore it to the same-sized partition /dev/sdc1. Which command does this?
Show the answer
Correct answerC. zcat /backup/sdb1.img.gz | dd of=/dev/sdc1 bs=4M
zcat decompresses the image to standard output, and dd writes the raw data to /dev/sdc1 as its output file. Reading the .gz file directly with dd would write compressed bytes to the partition, which is the tempting shortcut; gzip -c would compress it again, and swapping if and of would overwrite the backup.