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.
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)- A4% (2)
- B87% (39)
- C7% (3)
- D2% (1)
Why each option
The systemctl disable command removes a service's startup symlinks so it does not launch automatically on the next boot.
'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.
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.
'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.
'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
Community Discussion
No community discussion yet for this question.