nerdexam
CompTIA

LX0-101 · Question #197

Which of the following commands can be used to access the content of a ramdisk file (/boot/initrd) used by the kernel at boot time?

The correct answer is D. cp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/ -o loop. See the full explanation below for the reasoning.

Question

Which of the following commands can be used to access the content of a ramdisk file (/boot/initrd) used by the kernel at boot time?

Options

  • Acp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/
  • Bmkintird -d /boot/initrd; mount /boot/initrd /mnt/ -o loop
  • Ccp /boot/initrd /tmp/initrd.gz; mount /tmp/initrd /mnt/ -o loop
  • Dcp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/ -o loop
  • Emount /boot/initrd /mnt/ -o loop; cat /mnt

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    3% (1)
  • D
    84% (31)
  • E
    8% (3)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice