# man > at(1)

---
type: CommandReference
command: at
mode: man
section: 1
source: man-pages
---

## Quick Reference
- `at now + 5 minutes` — Schedule interactive commands to run in 5 minutes (press Ctrl+D when done)
- `at {{hh:mm}}` — Schedule interactive commands at a specific time
- `echo "{{command}}" | at 1000` — Run a command from stdin at 10:00 AM
- `at -f {{path/to/file}} 9:30 PM Tue` — Execute commands from a file next Tuesday
- `at -l` or `atq` — List pending jobs for the current user
- `at -c {{job_number}}` — View the details of a specific job
- `atrm {{job_number}}` — Delete a job by its number

## Name
`at`, `batch`, `atq`, `atrm` — queue, examine, or delete jobs for later execution

## Synopsis
text
at [options] timespec
at [options] -t time
at -c job [...]
at -l [job ...]
at -r job [...]
at -d job [...]
atq [options] [job ...]
atrm [options] job [...]
batch
## Options
- `-f file` — Read jobs from `file` instead of standard input
- `-t time` — Run at the time given in [[CC]YY]MMDDhhmm[.ss] format
- `timespec` — Time specification (see **Description** for complex formats like `now + 5 minutes`, `10am Jul 31`, `4pm + 3 days`)

- `-q queue` — Submit to a specific queue (letters `a`–`z`, `A`–`Z`; `a` default for `at`, `b` for `batch`; uppercase queues also apply batch load rules)
- `-b` — Alias for `batch`

- `-m` — Send mail to the user even if the job produces no output
- `-M` — Never send mail
- `-u username` — Send mail to `username` instead of the current user

- `-l` — List pending jobs (equivalent to `atq`); use `-o timeformat` to set output time format
- `-c job` — Print the specified job to standard output
- `-r`, `-d` — Remove the specified jobs (equivalent to `atrm`)
- `-V` — Print version number
- `-v` — Show the time the job will be executed before reading it

## Examples
Schedule a job 3 days from now at 4 PM:
shell
at 4pm + 3 days
Run a command on a specific date:
shell
at 10am Jul 31
Execute commands from a file next Tuesday at 9:30 PM:
shell
at -f commands.sh 9:30 PM Tue
Submit a batch job (runs when load permits):
shell
batch
Type commands, then press Ctrl+D.

List all pending jobs:
shell
atq
Remove job number 5:
shell
atrm 5
## See Also
- [`at.allow(5)`](http://localhost/phpMan.php/man/at.allow/5/markdown)
- [`at.deny(5)`](http://localhost/phpMan.php/man/at.deny/5/markdown)
- [`atd(8)`](http://localhost/phpMan.php/man/atd/8/markdown)
- [`cron(1)`](http://localhost/phpMan.php/man/cron/1/markdown)
- [`nice(1)`](http://localhost/phpMan.php/man/nice/1/markdown)
- [`sh(1)`](http://localhost/phpMan.php/man/sh/1/markdown)
- [`umask(2)`](http://localhost/phpMan.php/man/umask/2/markdown)