forked from iahmad-khan/RHCSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz1
190 lines (111 loc) · 3.87 KB
/
quiz1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
1) Which command will display all available kill signals?
Correct
Correct answer
kill -l
2) Which man page will show information about unit configuration files and their locations?
Correct
Correct answer
systemd.unit
3) As part of your application buildout on your Red Hat 7 Enterprise system, you have a process that is running
backend maintenance tasks. These maintenance tasks are not important and shouldn't take priority over other
tasks on the system. How might you tell the system to assign CPU usage to this process only after other
higher priority items have been completed or only if they do not need the CPU?
Correct
Correct answer
Set the nice priority to 19 on the process using renice, nice, or top.
4) Where are the configuration files for systemd located?
Correct
Correct answer
/usr/lib/systemd/system, /etc/systemd/system
5) -20 is the most favorable for a given process.
Correct
Correct answer
True
6) The command "systemctl set-default" will set the default target for the system at boot time.
Correct
Correct answer
True
7) Only a privileged user can run a process with lower niceness.
Correct
Correct answer
True
8) Which command(s) will display available systemd unit types?
Correct
Correct answer
systemctl -t help
9) What line in the boot loader entry do you need to edit after interrupting the boot process to change
the current boot target?
Correct
Correct answer
linux16
10) How do you view the disabled/enabled settings of all units with the type of service?
Incorrect
Correct answer
systemctl list-unit-files --type=service
11) Which command(s) will reboot the system 5 minutes from now and notify all users on the system of the impending reboot?
Correct
Correct answer
shutdown -r +5 rebooting!
12) Which command will create or update the manual page index caches; something you should run after installing new man pages?
Correct
Correct answer
mandb
13) Which command(s) will power off the system?
Correct
Correct answer
poweroff, systemctl poweroff, shutdown -p
14) Which "niceness" is the least favorable for a process?
Correct
Correct answer
19
15) systemctl halt will shut down and halt the system.
Correct
Correct answer
True
16) Which command(s) will move the system into the graphical.target?
Correct
Correct answer
systemctl isolate graphical.target
17) How can you list the active state of all loaded service unit configuration files?
Correct
Correct answer
systemctl list-units --type=service
18) How would you find all manage pages associated with systemd?
Correct
Correct answer
apropos systemd
19) What is the percentage load average for the following processor count and given load for the 5 minute
load average? [root@localhost]# uptime 09:55:50 up 16:35, 3 users, load average: 4.05, 3.03, 3.75
[root@localhost ~]# grep "model name" /proc/cpuinfo | wc -l 5
Correct
Correct answer
60%
20) Which command(s) will show all available targets on the system?
Correct
Correct answer
systemctl list-units --type=target
21) Which man page will show specific configuration options for a service unit configuration?
Correct
Correct answer
man systemd.service
22) If your system is currently in the graphical.target, which command(s) will move it out of the graphical.target
and into the multi-user.target?
Correct
Correct answer
systemctl isolate multi-user.target
23) How can you list all failed service unit configuration files?
Correct
Correct answer
systemctl --failed --type=service
24) Which command(s) will list unit configuration files that are dependencies for the network target?
Correct
Correct answer
systemctl list-dependencies network.target
25) Which command(s) will perform a reboot on the system?
Correct
Correct answer
systemctl reboot, reboot, shutdown -r
26) Which command(s) will list all service unit configuration files regardless of whether they are active or not?
Correct
Correct answer
systemctl --type=service --all