nerdexam
Linux_Foundation

LFCS · Question #840

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

The correct answer is B. patch-kernel. The patch-kernel script, typically found within the Linux kernel source tree, is specifically designed to automate the process of applying patches to the kernel source.

Submitted by fatima_kr· Apr 18, 2026Operation of Running Systems

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

(64 responses)
  • A
    5% (3)
  • B
    92% (59)
  • C
    3% (2)

Why each option

The `patch-kernel` script, typically found within the Linux kernel source tree, is specifically designed to automate the process of applying patches to the kernel source.

Aupdate-kernel

`update-kernel` is not a standard script included with the kernel source for patching, though similar names exist for other kernel-related tasks like updating initramfs.

Bpatch-kernelCorrect

The `patch-kernel` script is a utility, often included within Linux kernel source distributions or development toolsets, that is specifically used to apply patches, especially incremental ones, to the kernel source tree. It simplifies the patching process by managing patch levels and ensuring correct application.

Capply-patch

`apply-patch` is a generic term, but not the specific name of the script included with the kernel source for this purpose.

Dpatch

`patch` is the general-purpose utility used to apply diff files, but `patch-kernel` is the specific *script* that orchestrates kernel patching, often utilizing the `patch` utility internally.

Concept tested: Linux kernel patching utilities

Topics

#Kernel management#Kernel patching#System administration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice