easyMultiple ChoiceObjective-mapped
XK0-006 Practice Question: Schedule a backup script located at…
An administrator needs to schedule a backup script located at '/usr/local/bin/backup.sh' to run every Sunday at 2:30 AM. The server uses cron for task scheduling. The administrator currently has the following crontab entry: '30 2 * * 0 /usr/local/bin/backup.sh'. However, the administrator wants to verify that the cron job is configured correctly and will run as expected. Which of the following commands should the administrator use to list the current user's cron jobs and verify the entry?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
crontab -l
The 'crontab -l' command lists the current user's crontab entries. Option D is correct. 'cron -l' is not a valid command. 'cat /var/spool/cron/crontabs/root' might work for root but not for a regular user, and the path varies. 'systemctl status cron' shows the cron service status, not the job list.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
cat /var/spool/cron/crontabs/root
Why it's wrong here
This file is for the root user; the administrator may not have access to other users' files, and the path may differ on some distributions.
- ✗
systemctl status cron
Why it's wrong here
Shows the status of the cron service, not the scheduled jobs.
- ✗
cron -l
Why it's wrong here
The cron command does not have a -l option for listing jobs.
- ✓
crontab -l
Why this is correct
Lists the current user's crontab entries, allowing verification.
Go deeper
Related to this question
Learn chapter
User and Group Administration
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.