nerdexam
LPI

117-201 · Question #38

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

  • Amount /boot/initrd /mnt/ -0 loop; cat /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
  • Ecp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    85% (22)

Community Discussion

No community discussion yet for this question.

Full 117-201 Practice