102-500 · Question #132
What is the main difference between the batch and at commands?
The correct answer is B. The batch command will run when system load is low. batch runs jobs when system load drops below a threshold (typically 1.5), making it ideal for deferring resource-intensive work until the system is less busy - this is the key distinction from at. The at command, by contrast, schedules a job to run at a specific future time…
Question
Options
- AThe batch command will run multiple times.
- BThe batch command will run when system load is low.
- CThe at command reads commands from standard input.
- DThe at command e-mails results to the user.
How the community answered
(45 responses)- A9% (4)
- B84% (38)
- C4% (2)
- D2% (1)
Explanation
batch runs jobs when system load drops below a threshold (typically 1.5), making it ideal for deferring resource-intensive work until the system is less busy - this is the key distinction from at. The at command, by contrast, schedules a job to run at a specific future time regardless of system load.
Why the distractors are wrong:
- A is incorrect -
batchdoesn't run multiple times; it queues a job for a single run, just likeat. - C is backwards - it's actually
batch(notat) that reads commands from standard input;atalso accepts stdin, so this isn't a meaningful differentiator. - D is a partial truth that applies to both commands -
atandbatchboth mail output to the user by default, so it's not a distinguishing difference.
Memory tip: Think of "batch = back off until idle" - the batch command holds your job in the queue until the system load is low enough to handle it, like a polite guest who waits for a quiet moment before asking for something.
Topics
Community Discussion
No community discussion yet for this question.