nerdexam
CompTIA

XK0-004 · Question #446

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

The correct answer is B. systemctl disable bluetccth.service. The systemctl disable command removes a service's boot-time symlinks so it no longer starts automatically on every system boot.

System Management

Question

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

Options

  • Asystemctl disabled bluetcc-h.service
  • Bsystemctl disable bluetccth.service
  • Csystemctl stop bluetooth.service
  • Dsystemctl stepped bluetccth.service

How the community answered

(61 responses)
  • A
    2% (1)
  • B
    87% (53)
  • C
    3% (2)
  • D
    8% (5)

Why each option

The systemctl disable command removes a service's boot-time symlinks so it no longer starts automatically on every system boot.

Asystemctl disabled bluetcc-h.service

"disabled" is not a valid systemctl subcommand - the correct keyword is "disable" without the trailing "d", so this command will return a syntax error.

Bsystemctl disable bluetccth.serviceCorrect

systemctl disable bluetooth.service removes the symbolic links from systemd target directories such as /etc/systemd/system/multi-user.target.wants/ that cause the service to be started during boot. This persistently prevents Bluetooth from auto-starting on all future reboots while leaving the service available for manual invocation. The disable subcommand modifies only the persistent startup configuration and does not affect a currently running instance.

Csystemctl stop bluetooth.service

systemctl stop immediately halts the running Bluetooth service but leaves the boot-time symlinks intact, so the service will start again automatically on the next reboot.

Dsystemctl stepped bluetccth.service

"stepped" is not a recognized systemctl subcommand regardless of spelling and will produce an error without taking any action.

Concept tested: Disabling systemd service persistent boot startup

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

Topics

#systemctl#service management#boot services#systemd

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice