nerdexam
CompTIACompTIA

XK0-005 · Question #1457

XK0-005 Question #1457: Real Exam Question with Answer & Explanation

The correct answer is B: dd if=/dev/sda of=/tmp/sda.img. The command dd if=/dev/sda of=/tmp/sda.img should be used to create an image named sda.img from the sda disk and store it in the /tmp directory. The dd command is a tool for copying and converting data on Linux systems. The if option specifies the input file or device, in this ca

System Management

Question

A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

Options

  • Add of=/dev/sda if=/tmp/sda.img
  • Bdd if=/dev/sda of=/tmp/sda.img
  • Cdd --if=/dev/sda --of=/tmp/sda.img
  • Ddd --of=/dev/sda --if=/tmp/sda.img

Explanation

The command dd if=/dev/sda of=/tmp/sda.img should be used to create an image named sda.img from the sda disk and store it in the /tmp directory. The dd command is a tool for copying and converting data on Linux systems. The if option specifies the input file or device, in this case /dev/sda, which is the disk device. The of option specifies the output file or device, in this case /tmp/sda.img, which is the image file. The command dd if=/dev/sda of=/tmp/sda.img will copy the entire disk data from /dev/sda to /tmp/sda.img and create an image file.

Topics

#dd command#Disk imaging#Storage management#Linux utilities

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions