Session ID: 132
Mode: objective
Status: in_progress
Score: 0%
Filter: All | Incorrect | Flagged | Unanswered
Current filter: Unanswered
In a SysVinit-based system, which runlevel is used for system restart?
Status: Unanswered
Your Answer:
Options:
Explanation:
In SysVinit, runlevel 6 is used for system restart [1].
Enter the command that powers off a systemd-based system.
Status: Unanswered
Your Answer:
Accepted Answer(s):
systemctl poweroff
Explanation:
The lesson states that systemctl poweroff turns off the machine [1].
Which file traditionally defines the default SysVinit runlevel?
Status: Unanswered
Your Answer:
Options:
Explanation:
The default SysVinit runlevel is defined in /etc/inittab [1].
What file points to the default system target on a systemd-based system?
Status: Unanswered
Your Answer:
Accepted Answer(s):
/etc/systemd/system/default.target
Explanation:
The lesson states that this symbolic link points to the unit file defined as the default target [1].
What command cancels a scheduled shutdown or reboot?
Status: Unanswered
Your Answer:
Accepted Answer(s):
shutdown -c
Explanation:
The lesson states that shutdown -c should be used to cancel a scheduled reboot [1].
In some Linux distributions, what may /usr/sbin/poweroff actually be?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson gives an example showing /usr/sbin/poweroff as a symbolic link to /bin/systemctl [1].
Which command changes the current runlevel in a SysVinit-based system?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson covers telinit as the command used to alternate between runlevels [1].
Which systemd command reboots the machine?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson states that systemctl reboot should be used to restart the system [1].
Enter one command that checks the current status of sshd.service.
Status: Unanswered
Your Answer:
Accepted Answer(s):
systemctl status sshd.service
systemctl is-active sshd.service
Explanation:
The lesson lists both commands as correct ways to verify whether sshd.service is running [1].
Which symbolic link points to the default target unit file on a systemd-based system?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson explains that /etc/systemd/system/default.target points to the unit file defined as the default target [1].