101.3 Flashcards

1
Q

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

A) systemctl isolate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which command reboots the system?
A) init 6
B) systemctl poweroff
C) init 0
D) systemctl reboot

A

D) systemctl reboot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command shuts down the system immediately?
A) init 0
B) shutdown -h now
C) halt
D) reboot

A

B) shutdown -h now

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

B) systemctl isolate rescue.target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A) graphical.target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which runlevel is equivalent to the systemd rescue target?
A) 1
B) 3
C) 5
D) 0

A

A) 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A) systemctl set-default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which systemd target is similar to runlevel 3?
A) graphical.target
B) multi-user.target
C) rescue.target
D) shutdown.target

A

B) multi-user.target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

C) shutdown +5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

C) There is no default runlevel in systemd, but a default target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which runlevel represents a reboot in a SysV system?
A) 0
B) 1
C) 5
D) 6

A

D) 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which command is used to halt the system without powering it off?
A) shutdown -P
B) systemctl halt
C) shutdown -r
D) systemctl reboot

A

B) systemctl halt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can you check the current systemd target?
A) systemctl get-target
B) systemctl status target
C) systemctl get-default
D) systemctl list-units

A

C) systemctl get-default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

B) init 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which runlevel is typically used for single-user mode in SysV init?
A) 0
B) 1
C) 5
D) 6

A

B) 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A) systemctl isolate multi-user.target

17
Q

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

A

B) Reboot the system immediately

18
Q

Which target is equivalent to runlevel 5 in a systemd system?
A) rescue.target
B) graphical.target
C) multi-user.target
D) shutdown.target

A

B) graphical.target

19
Q

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

A

B) systemctl rescue

20
Q

Which runlevel is associated with shutting down the system in a SysV init system?
A) 0
B) 1
C) 5
D) 6

A

A) 0

21
Q

Which runlevel corresponds to a full multi-user mode with networking in a SysV init system?
A) 1
B) 3
C) 5
D) 0

A

B) 3

22
Q

How can you reboot the system in a systemd environment?
A) systemctl stop
B) systemctl halt
C) systemctl reboot
D) init 0

A

C) systemctl reboot

23
Q

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

A

B) The system shuts down

24
Q

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

A

C) systemctl set-default

25
Q

What is the purpose of the ‘shutdown -P’ command?
A) Shut down and power off the system
B) Reboot the system
C) Halt the system without powering off
D) Bring the system to single-user mode

A

A) Shut down and power off the system

26
Q

Which systemctl command allows you to switch to a graphical.target?
A) systemctl isolate graphical.target
B) systemctl stop graphical.target
C) systemctl start graphical.target
D) systemctl enable graphical.target

A

A) systemctl isolate graphical.target

27
Q

What is the difference between ‘shutdown -h now’ and ‘systemctl poweroff’?
A) ‘shutdown -h now’ halts the system but does not power it off, ‘systemctl poweroff’ powers off the system
B) ‘shutdown -h now’ powers off the system immediately
C) There is no difference
D) Both shut down the system but in different ways

A

A) ‘shutdown -h now’ halts the system but does not power it off, ‘systemctl poweroff’ powers off the system

28
Q

Which command reboots the system after a 1-minute delay?
A) shutdown -r +1
B) shutdown -h +1
C) reboot -1
D) systemctl reboot -1

A

A) shutdown -r +1

29
Q

What does the command ‘systemctl list-units –type=target’ display?
A) List of all systemd services
B) List of all mounted filesystems
C) List of all systemd targets
D) List of all running processes

A

C) List of all systemd targets

30
Q

Which runlevel represents a shutdown in SysV init?
A) 0
B) 1
C) 3
D) 6

A

A) 0