nerdexam
LPI

010-100 · Question #90

Which of the following commands can be used to instruct the init process to switch runlevels? (Choose TWO correct answers)

The correct answer is A. telinit C. init. Both telinit and init can instruct the SysV init process to switch to a different runlevel by passing the target runlevel as an argument.

The Linux Operating System

Question

Which of the following commands can be used to instruct the init process to switch runlevels? (Choose TWO correct answers)

Options

  • Atelinit
  • Binitctl
  • Cinit
  • Dreinit
  • Erunlevel

How the community answered

(43 responses)
  • A
    74% (32)
  • B
    5% (2)
  • D
    14% (6)
  • E
    7% (3)

Why each option

Both telinit and init can instruct the SysV init process to switch to a different runlevel by passing the target runlevel as an argument.

AtelinitCorrect

telinit is a dedicated command that sends a signal to the running init process to change runlevels (e.g., telinit 3), and is the canonical tool for this purpose in SysV-style systems.

Binitctl

initctl is part of the Upstart init system and manages Upstart jobs and events; it is not used for traditional SysV runlevel switching.

CinitCorrect

The init binary itself accepts a runlevel argument (e.g., init 3) and communicates the change to the running PID 1 init process, making it a valid alternative to telinit.

Dreinit

reinit is not a real or standard Linux command and does not exist in SysV or Upstart tooling.

Erunlevel

runlevel only queries and displays the previous and current runlevel; it cannot instruct init to change runlevels.

Concept tested: SysV init runlevel switching commands

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

Topics

#runlevels#telinit#init#system initialization

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice