XK0-005 · Question #64
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
The correct answer is A. 0 E. 6. Run levels 0 (halt) and 6 (reboot) should never be set as the default run level in SysV init, as they would prevent the system from reaching a usable state.
Question
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
Options
- A0
- B1
- C3
- D5
- E6
How the community answered
(46 responses)- A89% (41)
- B2% (1)
- C7% (3)
- D2% (1)
Why each option
Run levels 0 (halt) and 6 (reboot) should never be set as the default run level in SysV init, as they would prevent the system from reaching a usable state.
Run level 0 is the halt state, meaning the system would immediately shut down after starting, making it unusable.
Run level 1 is single-user mode, which is sometimes used as a default for specific recovery scenarios, although typically not for production.
Run level 3 is multi-user mode with text-based login, which is a common and perfectly valid default run level.
Run level 5 is multi-user mode with a graphical login, which is also a common and valid default run level for desktop systems.
Run level 6 is the reboot state, meaning the system would continuously reboot in an endless loop, preventing it from ever fully starting.
Concept tested: SysV init run levels
Source: https://man7.org/linux/man-pages/man8/init.8.html
Topics
Community Discussion
No community discussion yet for this question.