exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 165 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 165
Topic #: 1
[All LFCS Questions]

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

  • A. 0 * * * 30 myscript
  • B. 30 * * * 6 myscript
  • C. 30 0 * * 0 myscript
  • D. 30 0-23 * * 0 myscript
  • E. 0 0-23 * * 30 myscript
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ncsiki
6 months, 1 week ago
Answer is D https://crontab.guru/#30_0-23_*_*_0
upvoted 1 times
...
EliteAllen
6 months, 3 weeks ago
Selected Answer: B
minute hour day_of_month month day_of_week command B. 30 * * * 6 myscript: This is correct regarding the day of the week (6 represents Saturday in the crontab, where Sunday is 0), but it will run every hour on Saturdays, not Sundays.
upvoted 1 times
...
rona962
1 year, 2 months ago
Selected Answer: B
The correct answer is: B. 30 * * * 6 myscript. Explanation: In a crontab entry, there are five fields that specify when the command should be executed: The first field specifies the minutes (0-59). The second field specifies the hours (0-23). The third field specifies the day of the month (1-31). The fourth field specifies the month (1-12). The fifth field specifies the day of the week (0-6), where 0 is Sunday. In the crontab entry "30 * * * 6 myscript", the "30" in the first field specifies that the command should be run at 30 minutes past the hour, the "*" in the second, third and fourth fields means "any hour", "any day of the month" and "any month", respectively. The "6" in the fifth field specifies that the command should be run on Sundays. Therefore, this crontab entry will execute "myscript" at 30 minutes past every hour on Sundays.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago