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)- A8% (2)
- B4% (1)
- C4% (1)
- D85% (22)
Community Discussion
No community discussion yet for this question.