nerdexam
CompTIA

LX0-103 · Question #27

What script is included with the kernel source to patch a kernel?

The correct answer is B. patch-kernel. The patch-kernel script is shipped with the Linux kernel source tree specifically to automate applying incremental patches to a kernel source tree.

Linux Installation and Package Management

Question

What script is included with the kernel source to patch a kernel?

Options

  • Aupdate-kernel
  • Bpatch-kernel
  • Capply-patch
  • Dpatch

How the community answered

(23 responses)
  • B
    96% (22)
  • D
    4% (1)

Why each option

The patch-kernel script is shipped with the Linux kernel source tree specifically to automate applying incremental patches to a kernel source tree.

Aupdate-kernel

update-kernel is not a script included with the kernel source; it is a distribution-specific package management command found on some Linux distros.

Bpatch-kernelCorrect

The patch-kernel script, located in the scripts/ directory of the Linux kernel source, automates downloading and applying incremental kernel patches. It calls the standard patch utility internally but provides a higher-level workflow tailored to kernel version management, making it the canonical tool bundled with the kernel source for this purpose.

Capply-patch

apply-patch is not a script included in the standard kernel source tree.

Dpatch

patch is a standalone GNU utility that applies diff files, but it is not the script bundled inside the kernel source tree for patching kernels.

Concept tested: Linux kernel source patch-kernel script usage

Source: https://www.kernel.org/doc/html/latest/process/applying-patches.html

Topics

#kernel patching#kernel source#patch-kernel script

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice