nerdexam
LPI

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…

Essential System Services

Question

What is the main difference between the batch and at commands?

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)
  • A
    9% (4)
  • B
    84% (38)
  • C
    4% (2)
  • D
    2% (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 - batch doesn't run multiple times; it queues a job for a single run, just like at.
  • C is backwards - it's actually batch (not at) that reads commands from standard input; at also accepts stdin, so this isn't a meaningful differentiator.
  • D is a partial truth that applies to both commands - at and batch both 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

#batch command#at command#job scheduling#system load

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice