A system administrator needs to prevent the chronyd service from starting automatically during the next system boot. However, the service must remain active in the current session. Which of the following commands will achieve this specific requirement?
The correct command is systemctl disable chronyd. This command removes the symbolic links that cause the service to start at boot time. Importantly, it does not affect the currently running instance of the service. The systemctl stop chronyd command would stop the service immediately, which violates the requirement that the service remains active. The systemctl mask chronyd command would not only prevent the service from starting at boot but also prevent it from being started manually or as a dependency by linking its unit file to /dev/null, which is more than what is required. The systemctl disable --now chronyd command would both disable the service from starting at boot and stop the currently active instance, which also fails to meet the scenario's requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between 'systemctl disable' and 'systemctl stop'?
Open an interactive chat with Bash
What does 'systemctl mask' do, and why would you use it?
Open an interactive chat with Bash
How is the 'systemctl disable --now' command different from 'systemctl disable'?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access