ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 89 - XK0-005 discussion

Report
Export

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?

A.
dd of=/dev/sda if=/tmp/sda.img
Answers
A.
dd of=/dev/sda if=/tmp/sda.img
B.
dd if=/dev/sda of=/tmp/sda.img
Answers
B.
dd if=/dev/sda of=/tmp/sda.img
C.
dd --if=/dev/sda --of=/tmp/sda.img
Answers
C.
dd --if=/dev/sda --of=/tmp/sda.img
D.
dd --of=/dev/sda --if=/tmp/sda.img
Answers
D.
dd --of=/dev/sda --if=/tmp/sda.img
Suggested answer: B

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. This is the correct command to use to accomplish the task. The other options are incorrect because they either use the wrong options (--if or --of instead of if or of) or swap the input and output (dd of=/dev/sda if=/tmp/sda.img or dd --of=/dev/sda --if=/tmp/sda.img). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Storage, page 323.

asked 02/10/2024
Tim Baas
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first