ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 45 - XK0-005 discussion

Report
Export

A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

A.
systemctl cancel nginx
Answers
A.
systemctl cancel nginx
B.
systemctl disable nginx
Answers
B.
systemctl disable nginx
C.
systemctl mask nginx
Answers
C.
systemctl mask nginx
D.
systemctl stop nginx
Answers
D.
systemctl stop nginx
Suggested answer: C

Explanation:

The command systemctl mask nginx disables the nginx service from the environment and prevents it from being automatically and manually started. This command creates a symbolic link from the service unit file to /dev/null, which makes the service impossible to start. This is the correct way to accomplish the task. The other options are incorrect because they either do not exist (systemctl cancel nginx), do not prevent manual start (systemctl disable nginx), or do not prevent automatic start (systemctl stop nginx). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 14: Managing Processes and Scheduling Tasks, page 429.

asked 02/10/2024
Kaisheng Wang
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first