CompTIACompTIA
XK0-005 · Question #53
XK0-005 Question #53: Real Exam Question with Answer & Explanation
The correct answer is C: init 1. To transition a SysV init system into a safe maintenance state, which corresponds to runlevel 1 (single-user mode), both the init 1 and telinit 1 commands can be used.
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
Explanation
To transition a SysV init system into a safe maintenance state, which corresponds to runlevel 1 (single-user mode), both the init 1 and telinit 1 commands can be used.
Common mistakes.
- A.
shutdown -R 1 nowis an incorrect syntax;shutdown -r nowinitiates a reboot, butshutdown -R 1is not a valid way to enter runlevel 1 for maintenance. - B.
shutdown -single nowis not a standard or valid command for entering single-user mode in SysV init systems. - E. The
runlevelcommand displays the current and previous runlevels, but it does not change the system's runlevel.
Concept tested. SysV init runlevels for maintenance
Reference. https://man7.org/linux/man-pages/man8/init.8.html
Topics
#SysV init#Runlevels#init command#System maintenance
Community Discussion
No community discussion yet for this question.