Bash Shell Scripting- One-time task execution with at | scheduling job with at command to execute once

Bash Shell Scripting- One-time task execution with at | scheduling job with at command to execute once

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial explains the differences between the AT and Crontab commands for scheduling tasks in Linux. It focuses on the AT command, providing syntax, examples, and various timing formats to schedule jobs. The tutorial demonstrates how to use the AT command to run shell scripts at specified times and how to manage scheduled jobs, including viewing and removing them.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary difference between the AT and crontab commands?

Both are used for one-time tasks.

AT is for recurring tasks, crontab is for one-time tasks.

AT is for one-time tasks, crontab is for recurring tasks.

Both are used for recurring tasks.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to schedule a job to run only once?

cron

crontab

at

schedule

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to schedule a job using the AT command?

schedule [time] [command]

at [command] [time]

run [command] at [time]

at [time] [command]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do after entering the shell script in the AT prompt?

Press Enter

Type 'exit'

Press Control + D

Type 'run'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you view the list of jobs scheduled with the AT command?

at -l

atq

at --list

at jobs

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to remove a scheduled job in AT?

at delete

at --remove

atrm

at -r

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid time format for scheduling a job with AT?

10:00 AM

10 AM

10:00

All of the above