Interpret the crontab line: 3 */1 * 3 6 wall hi. Which statement is true?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Interpret the crontab line: 3 */1 * 3 6 wall hi. Which statement is true?

Explanation:
In cron, the five time fields specify when the command should run: minute, hour, day of month, month, and day of week, followed by the command. Interpreting the line: - minute is 3 → run at the 3rd minute of each hour. - hour is */1 → every hour (0 through 23). - day of month is * → any day of the month. - month is 3 → March. - day of week is 6 → Saturday (with 0 or 7 typically Sunday, 1 Monday, etc.). Since the day-of-week field is specifically Saturday and the day-of-month field is a wildcard, the job runs on Saturdays in March. Put together, this means at minute 3 of every hour on Saturdays in March, the command wall hi will execute (e.g., 00:03, 01:03, …, 23:03 on Saturdays in March).

In cron, the five time fields specify when the command should run: minute, hour, day of month, month, and day of week, followed by the command. Interpreting the line:

  • minute is 3 → run at the 3rd minute of each hour.
  • hour is */1 → every hour (0 through 23).

  • day of month is * → any day of the month.

  • month is 3 → March.

  • day of week is 6 → Saturday (with 0 or 7 typically Sunday, 1 Monday, etc.).

Since the day-of-week field is specifically Saturday and the day-of-month field is a wildcard, the job runs on Saturdays in March. Put together, this means at minute 3 of every hour on Saturdays in March, the command wall hi will execute (e.g., 00:03, 01:03, …, 23:03 on Saturdays in March).

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy