nerdexam
CompTIA

XK0-005 · Question #1513

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…

The correct answer is C. systemctl mask nginx. The command systemct1 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.

System Management

Question

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?

Options

  • Asystemctl cancel nginx
  • Bsystemctl disable nginx
  • Csystemctl mask nginx
  • Dsystemctl stop nginx

How the community answered

(69 responses)
  • A
    1% (1)
  • B
    4% (3)
  • C
    93% (64)
  • D
    1% (1)

Explanation

The command systemct1 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.

Topics

#systemd#service management#systemctl#Linux administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice