nerdexam
CompTIA

XK0-005 · Question #397

A user does not want Bluetooth to start up every time the system starts. Which of the following commands should the user execute to accomplish this task?

The correct answer is B. Systemctl disable Bluetooth. Service. To prevent a systemd service from starting automatically upon system boot, a specific systemctl subcommand is used.

System Management

Question

A user does not want Bluetooth to start up every time the system starts. Which of the following commands should the user execute to accomplish this task?

Options

  • ASystemctl disabled Bluetooth.service
  • BSystemctl disable Bluetooth. Service
  • CSystem stop Bluetooth.service
  • DSystem stopped Bluetooth.service

How the community answered

(61 responses)
  • A
    3% (2)
  • B
    93% (57)
  • C
    2% (1)
  • D
    2% (1)

Why each option

To prevent a systemd service from starting automatically upon system boot, a specific `systemctl` subcommand is used.

ASystemctl disabled Bluetooth.service

`Systemctl disabled` uses an incorrect subcommand; it should be `disable`.

BSystemctl disable Bluetooth. ServiceCorrect

`Systemctl disable Bluetooth.service` correctly uses the `disable` subcommand to remove the service from the boot-time startup sequence, ensuring Bluetooth does not start automatically with the system.

CSystem stop Bluetooth.service

`Systemctl stop` only terminates the running service temporarily but does not prevent it from starting again on the next boot.

DSystem stopped Bluetooth.service

`Systemctl stopped` uses an incorrect subcommand; it should be `stop`.

Concept tested: Systemd service management (disabling services)

Source: https://www.freedesktop.org/software/systemd/man/systemctl.html

Topics

#systemctl#Service Management#Startup Configuration#Linux Services

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice