nerdexam
CompTIA

XK0-005 · Question #54

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

The correct answer is B. /sbin/init. Upon completion of kernel boot, the Linux kernel using SysV init traditionally executes the /sbin/init program, which then becomes the parent of all other user-space processes and manages system services based on runlevels.

System Management

Question

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Options

  • A/lib/init.so
  • B/sbin/init
  • C/etc/rc.d/rcinit
  • D/proc/sys/kernel/init
  • E/boot/init

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    94% (29)
  • E
    3% (1)

Why each option

Upon completion of kernel boot, the Linux kernel using SysV init traditionally executes the `/sbin/init` program, which then becomes the parent of all other user-space processes and manages system services based on runlevels.

A/lib/init.so

`/lib/init.so` is a shared library, not an executable program that the kernel directly starts as the first process.

B/sbin/initCorrect

In SysV init systems, after the Linux kernel loads and initializes the hardware, it hands over control to the first user-space process, which is always `/sbin/init`. This `init` process then orchestrates the startup of all other services and processes according to the configured runlevel.

C/etc/rc.d/rcinit

`/etc/rc.d/rcinit` is not the first program started by the kernel; scripts in `/etc/rc.d` are typically executed by the `init` process itself at various runlevels.

D/proc/sys/kernel/init

`/proc/sys/kernel/init` is a path within the proc filesystem, which exposes kernel parameters and runtime information; it is not an executable program.

E/boot/init

`/boot/init` is not the standard path for the init executable; `/boot` typically contains the kernel image and bootloader files.

Concept tested: SysV init process startup

Source: https://www.tldp.org/LDP/sag/html/init-boot.html

Topics

#Linux boot process#SysV init#Init system#/sbin/init

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice