4.3.1 Flashcards

1
Q

Changes the system state to the specified boot target. Changing boot targets with the systemctl command changes only the current system state. If the system is restarted, it will revert back to the default boot target.

A

systemctl isolate boot_target

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

Displays the current boot target.

A

systemctl get-default

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

Sets the default boot target, which is identified by the /etc/systemd/system/default.target file. This file is a symbolic link that points to a target file in /usr/lib/systemd/system that should be used by default when the system starts. This command modifies the target file that the default.target symbolic link points to.

A

systemctl set-default boot_target

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

You can use the________________ command to print a list of running units, listed in the order of time to initialize. Consider that initialization time includes the time a unit must wait for another unit to complete

A

systemd-analyze blame

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

The ________________ command does not report results for services that start immediately as indicated by type=simple.

A

systemd-analyze blame

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

Examples of resources controlled by unit files are:

A

Sockets
Devices
Mountpoints
Automount points
Filesystem
Targets

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

Each section within the unit file is formatted as

A

[Section]
Directive1=value
Directive2=value

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

Lists referencing documentation for this unit or its configuration.

A

Documentation=

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

Lists ‘yes’ or ‘no’. These are similar to implicit dependencies, but can be turned on and off by setting this option to yes or no.

A

DefaultDependencies=

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

Lists negative requirement dependencies. If a unit has a Conflicts= setting on another unit, starting the former will stop the latter and vice versa. Note that this setting is independent of to the After= and Before= ordering dependencies.

A

Conflicts=

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

Lists the units that must be activated for a unit to function. By default, the other units listed by a directive are activated at the same time as the unit.

A

Requires=

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

Lists the units to start before this unit is started.

A

After=

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

Lists the units to start after this unit is started.

A

Before=

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

Lists the units recommended to be in effect or started for the unit to function.

A

Wants=

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

Systemd categories units according to the type of resource they describe. The easiest way to determine the type of a unit is by the _________ appended to the end of the resource name

A

suffix type

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