nerdexam
CompTIA

XK0-004 · Question #53

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

The correct answer is C. init 1 D. telinit 1. On SysV init systems, runlevel 1 is single-user maintenance mode, and it can be entered using either the init or telinit commands.

System Management

Question

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Options

  • Ashutdown -R 1 now
  • Bshutdown -single now
  • Cinit 1
  • Dtelinit 1
  • Erunlevel 1

How the community answered

(18 responses)
  • C
    94% (17)
  • E
    6% (1)

Why each option

On SysV init systems, runlevel 1 is single-user maintenance mode, and it can be entered using either the init or telinit commands.

Ashutdown -R 1 now

`shutdown -R` is not a valid flag; the correct flag for reboot is `-r`, and shutdown does not use `-R 1` to target a specific runlevel in single-user mode.

Bshutdown -single now

`shutdown -single` is not a valid shutdown option; no such flag exists in the standard SysV shutdown command syntax.

Cinit 1Correct

The `init` command is the direct interface to the SysV init process and accepts a runlevel argument; `init 1` signals the init daemon to transition to runlevel 1, which is single-user maintenance mode where only essential services run.

Dtelinit 1Correct

The `telinit` command is functionally equivalent to `init` - it communicates with the running init process via signals to request a runlevel change; `telinit 1` transitions to single-user mode just as `init 1` does.

Erunlevel 1

`runlevel` is a query command that displays the previous and current runlevel - it cannot be used to change the system's runlevel.

Concept tested: SysV init runlevel management and single-user mode

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

Topics

#SysV init#runlevels#single-user mode#maintenance mode

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice