Skip to content

Linux+ XK0-006 practice question 6: Services and users

An administrator wants a cron job that runs a backup script every day at 02:30. Which crontab schedule is correct?

The options

  • A. 30 2 * * *
  • B. * * 2 30 *
  • C. 30 2 2 * *
  • D. 2 30 * * *

Answer and why

The correct answer is A: 30 2 * * *

A. The fields are minute, hour, day of month, month and day of week, so 30 2 * * * is 02:30 daily.

B. This sets day of month 2 and month 30, which is invalid.

C. This runs only on the second day of each month.

D. This reads minute 2 of hour 30, and hour 30 does not exist.

What Services and users tests

Services and user management covers systemd units, scheduling, containers, accounts, groups and permissions. Read whether the question is about a unit file, a user record or a file mode before you read the options.

Services and user management is 20% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 6 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.