nerdexam
GIAC

GCFA · Question #303

Which of the following files starts the initialization process in booting sequence of the Linux operating system?

The correct answer is A. /etc/sbin/init. In the Linux SysV init boot process, the init binary (at /sbin/init) is the first userspace process spawned by the kernel and serves as the root of all subsequent process initialization.

Advanced Mac & Linux Forensics

Question

Which of the following files starts the initialization process in booting sequence of the Linux operating system?

Options

  • A/etc/sbin/init
  • B/etc/inittab
  • C/etc/rc/rc.local
  • D/etc/rc/rc.sysinit

How the community answered

(32 responses)
  • A
    78% (25)
  • B
    3% (1)
  • C
    13% (4)
  • D
    6% (2)

Why each option

In the Linux SysV init boot process, the init binary (at /sbin/init) is the first userspace process spawned by the kernel and serves as the root of all subsequent process initialization.

A/etc/sbin/initCorrect

After the Linux kernel completes hardware initialization and mounts the root filesystem, it executes /sbin/init as PID 1 - the first and only process directly launched by the kernel. This init program then reads its configuration and spawns all other system processes and services, making it the true starting point of the userspace initialization sequence.

B/etc/inittab

/etc/inittab is a configuration file that the init program reads to determine runlevel actions and service startup order; it is a data file consumed by init, not the program that starts initialization.

C/etc/rc/rc.local

rc.local is a shell script executed near the very end of the boot sequence for local administrator customizations, running long after initialization has already begun.

D/etc/rc/rc.sysinit

rc.sysinit is a script invoked by init to perform early system tasks such as mounting filesystems and setting the hostname, but it runs only after init itself has already started as PID 1.

Concept tested: Linux SysV init PID 1 boot sequence

Source: https://man7.org/linux/man-pages/man8/init.8.html

Topics

#Linux init#boot sequence#initialization process#Linux startup

Community Discussion

No community discussion yet for this question.

Full GCFA Practice