nerdexam
CompTIA

LX0-101 · Question #255

If the current directory is /root and the kernel source is located in /usr/src/linux, which of the following commands should be used to apply the patch /tmp/foopatch?

The correct answer is D. cd /usr/src/linux; patch -p1 < /tmp/foopatch. See the full explanation below for the reasoning.

Question

If the current directory is /root and the kernel source is located in /usr/src/linux, which of the following commands should be used to apply the patch /tmp/foopatch?

Options

  • Acd /usr/src/linux; cat /tmp/foopatch | patch
  • Bcd /usr/src/linux; cat /tmp/foopatch | patch -p0
  • Ccd /usr/src/linux; patch -p1 > /tmp/foopatch
  • Dcd /usr/src/linux; patch -p1 < /tmp/foopatch
  • Ecat /tmp/foopatch | patch -p0

How the community answered

(61 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    7% (4)
  • D
    79% (48)
  • E
    11% (7)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice