Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
The command 'shutdown -r now' reboots the system immediately by sending a signal to init to switch to runlevel 6, which is designated for rebooting the system in SysV init. The command 'telinit 6' directly tells init to change to runlevel 6, thereby rebooting the system as well. Both commands effectively trigger a system reboot when using SysV init.
Option A. shutdown -r now and Option C. telinit 6 reboot the system when using SysV init. Option A: The shutdown -r now command reboots the system when using SysV init. It sends a signal to init to switch to runlevel 6, which is the runlevel used to reboot the system. Option B: The shutdown -r "rebooting" command does not reboot the system. The -r option tells shutdown to reboot the system, but the command must also specify a time at which the reboot should occur. Option C: The telinit 6 command tells init to switch to runlevel 6, which is the runlevel used to reboot the system when using SysV init. Option D: The telinit 0 command tells init to switch to runlevel 0, which is the runlevel used to halt the system. It does not reboot the system. Option E: The shutdown -k now "rebooting" command does not reboot the system. The -k option tells shutdown to send a warning message to all logged-in users, but it does not initiate a reboot.