nerdexam
CompTIA

XK0-004 · Question #274

A Linux administrator needs to prevent the Postfix mail transfer agent from starting on boot. Which of the following commands will accomplish this task?

The correct answer is C. systemctl disable postfix.service. The task is to "prevent the postfix mail transfer agent from starting on boot" and systemctl disable postfix.service would accomplish that where simply stopping the service would not.

System Management

Question

A Linux administrator needs to prevent the Postfix mail transfer agent from starting on boot. Which of the following commands will accomplish this task?

Options

  • Asystemctl stop postfix.service
  • B/etc/init.d/postfix stop
  • Csystemctl disable postfix.service
  • D/etc/init.d/postfix disable

How the community answered

(41 responses)
  • B
    5% (2)
  • C
    93% (38)
  • D
    2% (1)

Explanation

The task is to "prevent the postfix mail transfer agent from starting on boot" and systemctl disable postfix.service would accomplish that where simply stopping the service would not.

Topics

#systemctl disable#service management#boot services#Postfix

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice