nerdexam
CompTIA

XK0-005 · Question #462

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?

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…

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

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    89% (33)
  • C
    3% (1)
  • D
    3% (1)

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#Linux commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice