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.
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)- A74% (32)
- B5% (2)
- D14% (6)
- E7% (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.
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.
initctl is part of the Upstart init system and manages Upstart jobs and events; it is not used for traditional SysV runlevel switching.
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.
reinit is not a real or standard Linux command and does not exist in SysV or Upstart tooling.
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
Community Discussion
No community discussion yet for this question.