101-500 practice question 7 of 30

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.)

Full set: 246 questions
Answer options
A: shutdown -R 1 now
B: shutdown -single now
C: init 1 Correct answer
D: telinit 1 Correct answer
E: runlevel 1
Correct Answer:
C. init 1; D. telinit 1
Explanation

In a SysV init system, runlevel 1 is the single-user mode, which is designed for system maintenance. In this mode, networking is disabled, and no user services are started, preventing interference with administrative tasks. The init 1 command directly instructs the init process to transition to runlevel 1. The telinit 1 command is functionally identical, as telinit is typically a symbolic link to init and is used to signal the running init daemon to change runlevels.

Why Incorrect

A. shutdown -R is not a standard option. The -r (reboot) option exists, but that does not enter a maintenance state.
B. shutdown does not have a -single option. The correct syntax to enter single-user mode with shutdown is shutdown now (which defaults to single-user mode in some older systems) or shutdown -s (obsolete).
E. The runlevel command is used to display the current and previous runlevel, not to change it.

References

1. init(8) — Linux man page. "init is the parent of all processes. Its primary role is to create processes from a script stored in the file /etc/inittab... A runlevel is a software configuration of the system which allows only a selected group of processes to exist... Runlevels are typically numbered 0 through 6... Runlevel 1 is used to bring the system down into single-user mode."

2. telinit(8) — Linux man page. "telinit is linked to /sbin/init. It takes a one-character argument and signals init to change runlevels."

3. Ubuntu Server Guide, "Boot and Startup", Section on SysVinit Runlevels. "Runlevel 1 is single-user mode. It is mainly used for administrative tasks."

Scroll to Top