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 questionsIn 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.
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.
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."
Keep practicing
Take the free 101-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 101-500 practice questions
- Question 1Which of the following commands prints a list of available package updates when using RPM…
- Question 2Which of the following commands changes the number of days before the ext3 filesystem on …
- Question 3During a system boot cycle, what program is executed after the BIOS completes its tasks?
- Question 4Which of the following commands reboots the system when using SysV init? (Choose TWO corr…
- Question 5Which of the following commands updates the linker cache of shared libraries?
- Question 6Which of the following commands can be used to create a USB storage media from a disk ima…
