at
Quick Reference
Command Name:
at
Category:
process management
Platform:
linux
Basic Usage:
Common Use Cases
- 1
One-time task scheduling
Schedule commands to run once at a specific time
- 2
Delayed execution
Execute commands after a specified delay
- 3
System maintenance
Schedule maintenance tasks during off-peak hours
- 4
Batch processing
Queue multiple jobs for execution at specific times
Syntax
at [-V] [-q queue] [-f file] [-mMlv] timespec... at [-V] [-q queue] [-f file] [-mMkv] [-t time]
Options
Option | Description |
---|---|
-V | Output version information |
-q queue | Use the specified queue (a single letter from a to z; a is highest priority) |
-f file | Read the job from file rather than standard input |
-m | Send mail to the user when the job has completed |
-M | Never send mail to the user, even when output exists |
-l | Output a list of all jobs (same as atq) |
-d job [job...] | Remove the specified jobs (same as atrm) |
-v | Show the time the job will be executed before reading the job |
-c job | Print the job listed by atq to standard output |
-t time | Run the job at the time specified in the format [[CC]YY]MMDDhhmm[.ss] |
Examples
How to Use These Examples
The examples below show common ways to use the at
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
at 2pm
at 3am tomorrow
at 10:15 July 31, 2023
at -f commands.txt 23:00