Question 830
At 14:00, an operator wants to enqueue a single command for 14:20 without opening a text editor. The at daemon is running. Which pipeline submits the command to be executed in twenty minutes?
- atq | grep report-once
- printf "%s\n" "/usr/local/bin/report-once" | at now + 20 minutes
- printf "%s\n" "/usr/local/bin/report-once" | crontab -
- systemctl restart atd
Explanation
Correct Answer
B:printf supplies the command on standard input, and at receives its relative time specification; the one-time job is queued for twenty minutes later.
Incorrect Answers
A:Querying the at queue does not provide a command on standard input for submission; the new report is never scheduled.
C:Loading a crontab creates a recurring schedule file and the supplied string is not a valid five-field cron entry.
D:Restarting the at daemon does not submit /usr/local/bin/report-once to the queue.
Question 831
A scheduled one-time task has already been accepted by at, but the maintenance operator does not know the numeric job ID. What should be done before attempting cancellation?
- Delete the directory containing the scheduled shell script
- Run systemctl disable atd
- Run atq and identify the intended job identifier
- Create a second at job at the same time
Explanation
Correct Answer
C:atq shows the queue entry number beside the run time and owner; that is the identifier atrm needs to delete only the intended task.
Incorrect Answers
A:After at has already accepted a job, deleting an unrelated source script file is not the supported way to remove its spool entry.
B:Disabling future atd startup does not supply the job ID, nor does it safely remove the selected queued task.
D:An additional submission increases queue ambiguity and still leaves the original job in place.
Question 832
A minimal RHEL-family machine reports `at: command not found`. Before configuring any queue entry, which installation step supplies at, atq, atrm and the atd daemon?
- dnf install cronie
- systemctl enable --now atd
- atq
- dnf install at
Explanation
Correct Answer
D:The at RPM contains the one-time scheduler utilities and its daemon; installing it addresses the missing-command failure before scheduling or starting the service.
Incorrect Answers
A:Cronie provides recurring cron facilities; it does not install the at executable family identified by this error.
B:The atd unit cannot be started until the package providing the daemon is installed.
C:atq belongs to the missing at package and cannot create or install the required scheduler binaries.
Question 833
A job is queued for tomorrow. The operator wants to read the pending one-time jobs using an alternative form specifically documented by at, not remove or edit them. What is the alias?
- at -l
- at -r
- at -f
- at -b
Explanation
Correct Answer
A:The -l switch on at lists the current user’s pending one-time jobs, equivalent to atq, without changing the spool.
Incorrect Answers
B:The -r switch removes a selected scheduled job; it is not a read-only list option.
C:The -f switch reads commands from a supplied file to create a new queued job.
D:The -b form requests load-sensitive batch execution, unrelated to displaying the queue.
Question 834
During an audit, a pending job has ID 63. The operator needs the at command’s documented remove-alias form rather than the standalone atrm executable. Which command meets this requirement?
- at -l 63
- at -r 63
- at -f 63
- at 63
Explanation
Correct Answer
B:The -r option on at cancels queue entry 63 and is the supported alias for atrm 63.
Incorrect Answers
A:The -l form is for listing jobs, not canceling entry 63.
C:The -f form expects a file of commands for a new job, not an existing job ID to remove.
D:An isolated integer is treated as a scheduling time expression, not a queue-entry cancellation.
Question 835
A validated nightly task must execute on every weekday at 01:00. The platform offers cron and at. Which scheduler is appropriate for a recurring schedule rather than a single future execution?
- at 01:00 -f /opt/ops/nightly.sh
- atq
- A crontab entry with the required weekday and 01:00 fields
- atrm 12
Explanation
Correct Answer
C:Cron describes recurring time expressions and runs the task again on each matching weekday. At submits a single queued execution instead.
Incorrect Answers
A:at queues one execution at a selected time, not a continuing weekday recurrence.
B:atq only lists one-time jobs; it cannot declare a recurring schedule.
D:atrm 12 deletes one already queued at job identified by number 12. It cannot create the repeated weekday 01:00 executions described here.
Question 836
A nonurgent, CPU-intensive task may start only when system load has dropped rather than at a specific wall-clock time. Assuming the at package and daemon are available, which scheduling approach matches?
- Submit the command with at 14:00
- Run atq every minute
- Restart atd every hour
- Submit the command with batch
Explanation
Correct Answer
D:The batch utility from the at package defers the queued work until the scheduler judges system load low enough, instead of committing to a specific clock time.
Incorrect Answers
A:A fixed at time schedules an execution for that time, regardless of the task’s low-load preference.
B:Repeated atq commands only print pending job metadata. They never add a batch job or change when a queued CPU-heavy command becomes eligible.
C:Daemon restarts do not provide batch’s load-sensitive job scheduling semantics.
Question 837
An operator enters `at 16:40`, receives the interactive `at>` prompt, and types `/usr/local/bin/oneoff`. What action finalizes the request and submits it to the scheduler?
- Press Ctrl+D after completing the command input
- Press Ctrl+C immediately
- Run atq inside the at> prompt
- Run systemctl daemon-reload inside the prompt
Explanation
Correct Answer
A:End-of-file closes at’s standard input and commits the queued job; the operator should then see at report its job number.
Incorrect Answers
B:Ctrl+C interrupts input and can abort submission rather than cleanly ending the queued command stream.
C:The interactive prompt collects shell commands for the future job; atq entered there would become part of that future job.
D:A unit-file reload would be queued as a future command rather than ending at’s input.
Question 838
At 09:10, operations need a task to execute once at 09:40, not at 09:40 every day. The script file is already available. Which syntax describes an appropriate one-time relative schedule?
- crontab -e with minute 40 hour 9 every day
- at -f /opt/ops/rotate-once.sh now + 30 minutes
- atq
- systemctl enable atd.service
Explanation
Correct Answer
B:Red Hat documents -f to enqueue script-file contents and a relative now-plus expression for one execution. This combines the approved file with the thirty-minute offset without defining a daily cron schedule.
Incorrect Answers
A:That cron entry would repeat daily at 09:40 rather than run once thirty minutes from the current time.
C:atq inspects existing pending one-time jobs and does not submit the already prepared rotate-once.sh script for thirty minutes in the future.
D:Boot-time daemon enablement is a prerequisite matter, not a job specification with a thirty-minute deadline.
Question 839
An approved one-time maintenance job must run as the account that submitted it. What should be understood about the job shown by atq before the operator removes or recreates it?
- All at jobs run automatically as root
- The job inherits the permissions of whoever later lists atq
- The queue entry records its submitting user, and execution is associated with that owner
- Job owner is always whichever account starts atd
Explanation
Correct Answer
C:Red Hat’s atq output includes a user field beside the job ID and execution time. That identity matters for auditing whose credentials the future command uses.
Incorrect Answers
A:Job ownership in the at queue is explicit; a user-submitted job does not automatically acquire root privileges.
B:Listing the spool is read-only and does not transfer job ownership or execution identity.
D:The daemon manages execution; the submission metadata records the owning account separately.
Question 840
A pending job is shown in atq but has never run. The operator suspects the scheduler daemon is stopped and wants to inspect that prerequisite before altering the queue. Which command provides direct service status?
- atrm 1
- at now + 5 minutes
- atq
- systemctl status atd.service
Explanation
Correct Answer
D:systemctl status reports whether the daemon that dispatches at jobs is active, letting the operator distinguish a stopped scheduler from an empty queue.
Incorrect Answers
A:Removing an arbitrary queue entry would discard work instead of checking the scheduler’s service state.
B:Submitting another job can compound the queue backlog without diagnosing whether atd runs.
C:atq confirms queued jobs but alone does not establish whether the daemon is currently running.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests