Intermediate Package: at

at

Schedule a command to run once, at a specific future time.

Syntax

at time

Description

at schedules a one-off job for a later time rather than a repeating cron schedule โ€” useful for a single deferred task like "run this maintenance script at 2am tonight" without leaving a permanent recurring entry.

Examples

at 22:00
Start an interactive job, then type commands followed by Ctrl+D to schedule them
echo "systemctl restart nginx" | at 02:00
Schedule a single command non-interactively
atq
List currently pending at jobs
atrm 3
Cancel a pending job by its number
May need installing separately on minimal server images.

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux