0
0
Linux CLIscripting~5 mins

at command for one-time jobs in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the at command in Linux?
The at command schedules a one-time job to run at a specific time in the future.
Click to reveal answer
beginner
How do you schedule a command to run at 3:30 PM today using at?
Run at 15:30, then enter the commands you want to run, and press Ctrl+D to save.
Click to reveal answer
beginner
How can you list all pending jobs scheduled with at?
Use the command atq to see all pending at jobs for the current user.
Click to reveal answer
beginner
How do you remove a scheduled at job?
Use atrm job_number where job_number is the ID from atq.
Click to reveal answer
intermediate
What happens if you schedule an at job but the system is off at the scheduled time?
The job will not run because at does not run missed jobs after reboot.
Click to reveal answer
Which command schedules a one-time job to run at 10:00 PM today?
Aat 22:00
Bcron 22:00
Cbatch 22:00
Dschedule 22:00
How do you view the list of pending at jobs?
Aatq
Bcrontab -l
Cjobs
Dls /etc/at.d
What key combination do you press to finish entering commands in an at session?
ACtrl+C
BCtrl+X
CCtrl+D
DCtrl+Z
If you want to cancel a scheduled at job, which command do you use?
Aatstop job_number
Batcancel job_number
Catdel job_number
Datrm job_number
Which of these is NOT true about the at command?
AIt schedules one-time jobs.
BIt runs missed jobs after reboot.
CIt uses a simple time format like 'now + 1 hour'.
DIt requires the <code>atd</code> daemon to be running.
Explain how to schedule a one-time job using the at command and how to check if it is scheduled.
Think about the steps from scheduling to verifying.
You got /4 concepts.
    Describe how to remove a scheduled job with the at command and why you might want to do this.
    Focus on job management commands.
    You got /3 concepts.