A junior administrator has created a custom systemd timer unit named cleanup.timer that should purge stale files each time the server boots. The timer file contains a valid [Install] section with the line WantedBy=timers.target. The requirement is to make the timer start automatically after the next reboot, but not start it right now because final testing is still in progress. Which single systemctl command meets this requirement?
The command systemctl enable cleanup.timer writes the symbolic links defined in the unit's [Install] section, so the timer will be pulled in by timers.target on every future boot. The enable operation does not activate the unit immediately, satisfying the need to postpone the first run until after the next reboot.
systemctl enable --now cleanup.timer would both enable the timer and start it right away, violating the 'do not start now' condition.
systemctl start cleanup.timer only starts the unit for the current session and does not persist across reboots.
systemctl restart cleanup.timer requires the timer to be active already and, like start, has no lasting effect on boot-time activation.
Therefore, only systemctl enable cleanup.timer fulfills all stated 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 does the systemctl enable command do?
Open an interactive chat with Bash
What is the difference between systemctl enable and systemctl start?
Open an interactive chat with Bash
What is the systemd timers.target and its purpose?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .