What is the correct Linux command to schedule a one-time task for 2:00 AM tomorrow? Learn how the at 2:00 tomorrow command automates future tasks—essential for CompTIA Linux+ (Plus) XK0-005 exam success.
Table of Contents
Question
What command schedules a one-time task to run at 2:00 AM tomorrow?
A. cron -e
B. schedule 2:00 AM
C. crontab -l
D. systemctl timer
E. at 2:00 tomorrow
Answer
E. at 2:00 tomorrow
Explanation
The at command schedules a one-time job, and at 2:00 tomorrow sets it to run at 2:00 AM the next day, supporting system management automation.
The command to schedule a one-time task to run at 2:00 AM tomorrow is at 2:00 tomorrow.
The at command is designed to schedule one-time tasks for execution at a specified future time, unlike cron, which is for recurring jobs.
The syntax is:
at [time specification]
For example:
at 2:00 tomorrow
After entering this command, you are prompted to input the commands you want to run at the specified time. Finish by pressing Ctrl+D to save the job.
Supported time formats include absolute times (like 2:00 tomorrow or 10:00 AM next Monday) and relative times (like now + 1 hour).
The at daemon (atd) must be running for scheduled jobs to execute.
at 2:00 tomorrow schedules a one-time job to run at 2:00 AM the next day, making it the standard approach for single future task automation in Linux.
CompTIA Linux+ (Plus) XK0-005 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the CompTIA Linux+ (Plus) XK0-005 exam and earn CompTIA Linux+ (Plus) XK0-005 certification.