List the current user's pending at jobs without changing them.
Which command is appropriate?
atq lists pending at jobs with their IDs and scheduled times. It is separate from the cron queue.
Detailed explanation
atIncorrect. at registers a new one-time job.
atrmIncorrect. atrm deletes a selected job.
atqCorrect. atq lists pending jobs.
crontab -lIncorrect. crontab -l lists recurring cron entries.
Try it yourself
An example you can run in a temporary verification environment.
atq --help 2>&1 | sed -n '1,8p'Expected result
atqの使用方法Key points
- atq lists the queue
- atrm deletes
- Separate from cron
Notes
- Environment: atq help / キュー変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Cron
A scheduler for recurring jobs described by a time-field table.
at
A scheduler for one-time jobs queued for a specified time.
Anacron
A scheduler that can run periodic jobs after a system was unavailable.