nerdexam
CompTIA

XK0-004 · 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. SysV init run levels 0 (halt) and 6 (reboot) must never be set as the default run level because they immediately terminate or restart the system, making it unbootable for normal use.

System Management

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

(21 responses)
  • A
    90% (19)
  • B
    5% (1)
  • C
    5% (1)

Why each option

SysV init run levels 0 (halt) and 6 (reboot) must never be set as the default run level because they immediately terminate or restart the system, making it unbootable for normal use.

A0Correct

Run level 0 is defined as system halt - setting it as the default would cause the machine to shut down immediately upon reaching init, making the system inoperable.

B1

Run level 1 is single-user/maintenance mode, which is restrictive but valid as a temporary default for recovery purposes.

C3

Run level 3 is a normal multi-user mode without a graphical interface, which is a common and safe default run level.

D5

Run level 5 is multi-user mode with a graphical interface, also a common and safe default run level.

E6Correct

Run level 6 is defined as system reboot - setting it as the default would cause an infinite reboot loop as the system restarts before fully initializing.

Concept tested: SysV init run level definitions and restrictions

Source: https://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/runlevels.html

Topics

#SysV init#run levels#default runlevel#init

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice