CompTIA Linux+ (XK0-005) — Question 7
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
Answer options
- A. tar -cvzf /dev/sdd1 /dev/sdc1
- B. rsync /dev/sdc1 /dev/sdd1
- C. dd if=/dev/sdc1 of=/dev/sdd1
- D. scp /dev/sdc1 /dev/sdd1
Correct answer: C
Explanation
The correct command is 'dd if=/dev/sdc1 of=/dev/sdd1', as 'dd' is specifically designed for low-level copying of raw data from one device to another. The other options do not perform a direct block-level copy: 'tar' and 'rsync' are used for file-level operations, while 'scp' is meant for secure file transfers over a network.