New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 1 Question 49 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 49
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is configuring crontab and needs to schedule a task to run only on Saturday and Sunday at 9:00 a.m. every week of the year. Which of the following should the administrator use?

Show Suggested Answer Hide Answer
Suggested Answer: C

Comprehensive and Detailed Step-by-Step

0 9 * * 6,0 ensures execution at 9:00 AM on Saturdays (6) and Sundays (0).

1-5 would run the script Monday-Friday.

*/3 is incorrect because it runs every three days.

1 * * runs only on the 1st day of each month.


Contribute your Thoughts:

0/2000 characters
Elenora
3 months ago
Just to clarify, C means Saturday and Sunday, right?
upvoted 0 times
...
Devora
3 months ago
C is right, but I think D could confuse some people.
upvoted 0 times
...
Launa
3 months ago
Wait, why is everyone so sure about C? What about A?
upvoted 0 times
...
Alline
4 months ago
Definitely agree, C is the way to go.
upvoted 0 times
...
Tori
4 months ago
Option C is the correct one for weekends!
upvoted 0 times
...
Broderick
4 months ago
I’m a bit confused about the numbers for the days; I thought 1-5 was for weekdays, but I can't remember the exact mapping for weekends.
upvoted 0 times
...
Vilma
4 months ago
I practiced a similar question, and I believe the correct answer should include both weekend days, so maybe C is the right choice.
upvoted 0 times
...
Tiera
4 months ago
I think option C looks familiar because it specifies both Saturday and Sunday, but I can't recall if the syntax is correct.
upvoted 0 times
...
Refugia
5 months ago
I remember that crontab uses numbers for days of the week, but I'm not sure if 6 and 0 are the right ones for Saturday and Sunday.
upvoted 0 times
...
Rosalind
5 months ago
I'm pretty confident that option C is the right answer here. The crontab syntax for running a task on Saturday and Sunday at 9:00 a.m. is "0 9 * * 6,0 root /root/script.sh".
upvoted 0 times
...
Nadine
5 months ago
I'm a bit confused on this one. The question is asking about scheduling a task on Saturday and Sunday, but some of the options mention other days as well. I'll need to double-check the crontab format to be sure.
upvoted 0 times
...
Breana
5 months ago
Okay, I think I've got this. The key is to specify the days of the week, which would be Saturday and Sunday. Option C looks like the correct answer.
upvoted 0 times
...
Oliva
5 months ago
Hmm, this looks like a tricky one. I'll need to carefully review the crontab syntax to make sure I get this right.
upvoted 0 times
...
Terry
12 months ago
Option C is the correct answer. The administrator should be able to enjoy their weekend now that the cron job is set up properly.
upvoted 0 times
Glory
11 months ago
Exactly, setting up the cron job properly is essential for automation.
upvoted 0 times
...
Sanjuana
11 months ago
Great, the administrator can now relax on the weekends without worrying about the task.
upvoted 0 times
...
Erasmo
11 months ago
Yes, that's correct. It will run on Saturday and Sunday at 9:00 a.m.
upvoted 0 times
...
Doretha
11 months ago
I think the correct option is C) 0 9 * * 6,0 root /root/script.sh
upvoted 0 times
...
...
Clorinda
12 months ago
Hmm, Option C is the way to go. Weekends at 9 AM, easy peasy. I wonder if the administrator has time to grab a cup of coffee before the script runs.
upvoted 0 times
...
German
12 months ago
I'm not sure about the syntax, but Option C seems to be the most straightforward solution for the given requirement.
upvoted 0 times
Meghann
11 months ago
Yes, Option C specifies running the task at 9:00 a.m. on Saturday and Sunday, which meets the requirement.
upvoted 0 times
...
Tonette
11 months ago
Option C is correct. It will run the task at 9:00 a.m. on Saturday and Sunday every week.
upvoted 0 times
...
Lai
11 months ago
Yes, Option C is the right choice. It covers running the task only on Saturday and Sunday at 9:00 a.m.
upvoted 0 times
...
Marge
12 months ago
Option C is correct. It specifies to run the task at 9:00 a.m. on Saturday and Sunday every week.
upvoted 0 times
...
...
Holley
1 year ago
But option C specifies Saturday and Sunday, which is correct for the task.
upvoted 0 times
...
Ozell
1 year ago
Option C looks good to me. Running the script on Saturday and Sunday at 9 AM seems to be exactly what the administrator needs.
upvoted 0 times
Tora
11 months ago
Yes, Option C is the correct choice for scheduling the task to run only on Saturday and Sunday at 9:00 a.m. every week.
upvoted 0 times
...
Solange
11 months ago
I agree, Option C with '0 9 * * 6,0' will schedule the task to run at 9 AM on Saturday and Sunday.
upvoted 0 times
...
Chantell
11 months ago
I think you're right. Option C specifies running the task on Saturday and Sunday, which is what the administrator wants.
upvoted 0 times
...
Mitsue
12 months ago
Option C looks good to me. Running the script on Saturday and Sunday at 9 AM seems to be exactly what the administrator needs.
upvoted 0 times
...
...
Luisa
1 year ago
I disagree, I believe the answer is A.
upvoted 0 times
...
Holley
1 year ago
I think the answer is C.
upvoted 0 times
...

Save Cancel