CompTIA Linux+ (XK0-004) — Question 162
An administrator needs a bootable USB for installing a new Linux machine. The administrator downloaded the image file and named it as Linux_OS.iso in the / tmp directory. Which of the following commands will accomplish that task?
Answer options
- A. dd input=/tmp/Linux_OS.iso of=/dev/sda bs=512
- B. dd in=/tmp/Linux_OS.iso out=/dev/sdb bs=512
- C. dd if=/tmp/Linux_OS.iso of=/dev/sda bs=512
- D. dd if=/tmp/Linux_OS.iso out=/dev/sdb1 bs=512
Correct answer: C
Explanation
The correct command is C because it uses 'if' to specify the input file and 'of' to define the output file correctly. Option A uses the wrong keyword 'input', and options B and D incorrectly specify 'out' instead of 'of' and select the wrong device or partition for writing.