nerdexam
LPI

102-500 · Question #77

Which of the following commands display a list of jobs in the print queue? (Choose two.)

The correct answer is C. lpstat E. lpq. Both lpstat (C) and lpq (E) display the print queue - lpstat shows the status of the CUPS print spooler including queued jobs, while lpq (line printer queue) is the classic BSD-style command that lists pending jobs for a printer queue. The distractors are all invalid: cups…

Administrative Tasks

Question

Which of the following commands display a list of jobs in the print queue? (Choose two.)

Options

  • Acups --list
  • Blprm -l
  • Clpstat
  • Dlpr -q
  • Elpq

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    81% (21)
  • D
    4% (1)

Explanation

Both lpstat (C) and lpq (E) display the print queue - lpstat shows the status of the CUPS print spooler including queued jobs, while lpq (line printer queue) is the classic BSD-style command that lists pending jobs for a printer queue.

The distractors are all invalid: cups --list is not a real command (the CUPS daemon is controlled via cupsd or systemctl, not a --list flag); lprm -l is wrong because lprm is used to remove jobs from the queue, not list them; and lpr -q is wrong because lpr submits jobs to the queue - the -q flag queues a job quietly, it doesn't display the queue.

Memory tip: Think "lpq = query the queue" and "lpstat = status of the printer." Both are read-only inspection commands, while lpr (submit) and lprm (remove) change the queue - if a command modifies something, it won't be the answer for displaying the queue.

Topics

#print queue#lpq/lpstat#CUPS printing#system administration

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice