101.3 Flashcards
What command can be used to switch to a different runlevel or boot target?
A) systemctl isolate
B) systemctl reload
C) shutdown -r
D) init 6
A) systemctl isolate
Which command reboots the system?
A) init 6
B) systemctl poweroff
C) init 0
D) systemctl reboot
D) systemctl reboot
Which command shuts down the system immediately?
A) init 0
B) shutdown -h now
C) halt
D) reboot
B) shutdown -h now
Which command can be used to bring the system to single-user mode?
A) systemctl reboot
B) systemctl isolate rescue.target
C) shutdown -r
D) init 3
B) systemctl isolate rescue.target
What is the default systemd target for multi-user mode with a graphical interface?
A) graphical.target
B) multi-user.target
C) default.target
D) rescue.target
A) graphical.target
Which runlevel is equivalent to the systemd rescue target?
A) 1
B) 3
C) 5
D) 0
A) 1
How can you set the default target in a systemd-based system?
A) systemctl set-default
B) systemctl isolate default.target
C) systemctl enable graphical.target
D) systemctl start default.target
A) systemctl set-default
Which systemd target is similar to runlevel 3?
A) graphical.target
B) multi-user.target
C) rescue.target
D) shutdown.target
B) multi-user.target
Which command should be used to shutdown the system in 5 minutes?
A) shutdown -r 5
B) systemctl reboot -5
C) shutdown +5
D) init 0
C) shutdown +5
What is the default runlevel in a system that uses systemd?
A) 3
B) 5
C) There is no default runlevel in systemd, but a default target
D) 1
C) There is no default runlevel in systemd, but a default target
Which runlevel represents a reboot in a SysV system?
A) 0
B) 1
C) 5
D) 6
D) 6
Which command is used to halt the system without powering it off?
A) shutdown -P
B) systemctl halt
C) shutdown -r
D) systemctl reboot
B) systemctl halt
How can you check the current systemd target?
A) systemctl get-target
B) systemctl status target
C) systemctl get-default
D) systemctl list-units
C) systemctl get-default
Which command transitions the system to runlevel 5 in a SysV init system?
A) init 3
B) init 5
C) init 0
D) init 1
B) init 5
Which runlevel is typically used for single-user mode in SysV init?
A) 0
B) 1
C) 5
D) 6
B) 1
Which systemctl command allows you to change the system state to multi-user mode?
A) systemctl isolate multi-user.target
B) systemctl start multi-user.target
C) systemctl enable multi-user.target
D) systemctl isolate rescue.target
A) systemctl isolate multi-user.target
What does the command ‘shutdown -r now’ do?
A) Shut down the system immediately
B) Reboot the system immediately
C) Halt the system immediately
D) Put the system in rescue mode
B) Reboot the system immediately
Which target is equivalent to runlevel 5 in a systemd system?
A) rescue.target
B) graphical.target
C) multi-user.target
D) shutdown.target
B) graphical.target
Which command can be used to boot the system into rescue mode?
A) init 6
B) systemctl rescue
C) shutdown -r now
D) systemctl start graphical.target
B) systemctl rescue
Which runlevel is associated with shutting down the system in a SysV init system?
A) 0
B) 1
C) 5
D) 6
A) 0
Which runlevel corresponds to a full multi-user mode with networking in a SysV init system?
A) 1
B) 3
C) 5
D) 0
B) 3
How can you reboot the system in a systemd environment?
A) systemctl stop
B) systemctl halt
C) systemctl reboot
D) init 0
C) systemctl reboot
What happens if you execute ‘init 0’ in a SysV init system?
A) The system goes into single-user mode
B) The system shuts down
C) The system reboots
D) The system powers off
B) The system shuts down
Which command allows you to set the system’s default target in a systemd environment?
A) systemctl get-default
B) systemctl set-target
C) systemctl set-default
D) systemctl isolate default
C) systemctl set-default