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.
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)- A3% (1)
- B94% (29)
- E3% (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.
`/lib/init.so` is a shared library, not an executable program that the kernel directly starts as the first process.
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.
`/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.
`/proc/sys/kernel/init` is a path within the proc filesystem, which exposes kernel parameters and runtime information; it is not an executable program.
`/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
Community Discussion
No community discussion yet for this question.