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.)
A.
shutdown -R 1 now
B.
shutdown -single now
C.
init 1
D.
telinit 1
E.
runlevel 1
题解
选项 A,shutdown 指令没有「-R」参数。「-r」参数表示重新开机。
选项 B,shutdown 指令没有「-single」参数。
选项 C,init 指令可以改变 RunLevel。「init 1」可以将 RunLevel 改变成 RunLevel 1,也就是单人模式(Single User Mode)。
选项 D,telinit 指令可以改变 RunLevel。「telinit 1」可以将 RunLevel 改变成 RunLevel 1,也就是单人模式(Single User Mode)。
选项 E,runlevel 指令只能看目前使用的 RunLevel。
