Bookmark this page

Quiz: Schedule Future Tasks

Choose the correct answers to the following questions.

  1. 1.

    Which command displays all the user jobs that you scheduled to run as deferred jobs?

    A

    atq

    B

    atrm

    C

    at -c

    D

    at --display

  2. 2.

    Which command removes the deferred user job with the job number 5?

    A

    at -c 5

    B

    atrm 5

    C

    at 5

    D

    at --delete 5

  3. 3.

    Which command displays all the scheduled recurring user jobs for the currently logged-in user?

    A

    crontab -r

    B

    crontab -l

    C

    crontab -u

    D

    crontab -V

  4. 4.

    Which job format executes the /usr/local/bin/daily_backup command hourly from 9 AM to 6 PM on all days from Monday through Friday?

    A

    00 * * * Mon-Fri /usr/local/bin/daily_backup

    B

    * */9 * * Mon-Fri /usr/local/bin/daily_backup

    C

    00 */18 * * * /usr/local/bin/daily_backup

    D

    00 09-18 * * Mon-Fri /usr/local/bin/daily_backup

  5. 5.

    Which directory contains the shell scripts to run daily?

    A

    /etc/cron.d

    B

    /etc/cron.hourly

    C

    /etc/cron.daily

    D

    /etc/cron.weekly

  6. 6.

    Which configuration file defines the settings for the system jobs that run daily, weekly, and monthly?

    A

    /etc/crontab

    B

    /etc/anacrontab

    C

    /etc/inittab

    D

    /etc/sysconfig/crond

  7. 7.

    Which systemd unit regularly triggers the cleanup of temporary files?

    A

    systemd-tmpfiles-clean.timer

    B

    systemd-tmpfiles-clean.service

    C

    dnf-makecache.timer

    D

    unbound-anchor.timer

Revision: rh134-9.0-fa57cbe