nerdexam
CompTIA

XK0-004 · 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. The systemctl disable command removes a service's startup symlinks so it does not launch automatically on the next boot.

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

(45 responses)
  • A
    4% (2)
  • B
    87% (39)
  • C
    7% (3)
  • D
    2% (1)

Why each option

The systemctl disable command removes a service's startup symlinks so it does not launch automatically on the next boot.

ASystemctl disabled Bluetooth.service

'disabled' is not a valid systemctl subcommand; the correct subcommand is 'disable' without a trailing 'd', so this command would fail with an unknown operation error.

BSystemctl disable Bluetooth. ServiceCorrect

systemctl disable bluetooth.service removes the systemd symlinks in the enabled target directories that cause the service to start at boot, preventing Bluetooth from launching on subsequent system starts. The syntax requires the exact subcommand 'disable', the 'systemctl' base command, and the full unit name with the .service suffix.

CSystem stop Bluetooth.service

'system stop' uses the wrong base command 'system' instead of 'systemctl', and 'stop' only halts the currently running service instance without removing its boot-time startup configuration.

DSystem stopped Bluetooth.service

'system stopped' uses the wrong base command 'system' and 'stopped' is not a recognized systemctl operation, making this command entirely invalid.

Concept tested: systemctl disable to prevent service startup at boot

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

Topics

#systemctl disable#service management#boot persistence#systemd

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice