Inspect pending at jobs for the current user without changing them.
Which command is appropriate?
atq lists queued one-time jobs with their IDs and scheduled times.
Detailed explanation
at -rIncorrect. This is not the standard at-queue listing operation.
Incorrect. This is not the standard at-queue listing operation.
atrmIncorrect. atrm removes a selected job.
Incorrect. atrm removes a selected job.
crontab -lIncorrect. crontab -l lists recurring cron entries.
Incorrect. crontab -l lists recurring cron entries.
atqCorrect. atq lists pending at jobs.
Correct. atq lists pending at jobs.
Try it yourself
An example you can run in a temporary verification environment.
command -v atq >/dev/null && atq 2>&1 || printf '%s\n' 'atq: not installed'Expected result
待機ジョブがあれば一覧。なければ空出力。未導入環境ではnot installedKey points
- atq lists queue
- Check job ID
- Read-only
Notes
- Environment: Linux / atqの読取操作のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.