In BSD printing systems, which command removes one or more jobs from the print queue?

Difficulty: Easy

Correct Answer: lprm

Explanation:


Introduction / Context:
Traditional Unix printing follows the BSD model, where different commands handle job submission, monitoring, and removal. Knowing which tool removes jobs from the queue is essential for administrators and users managing print workloads.


Given Data / Assumptions:

  • BSD printing commands are available (lpr, lpq, lprm, lpc).
  • User has jobs in the print queue.


Concept / Approach:

The lprm command removes print jobs. By default, lprm with no arguments deletes the current user's jobs. Specific job IDs can also be provided. Administrators can remove jobs submitted by other users if permissions allow.


Step-by-Step Solution:

Submit job: lpr file.txtList queue: lpqRemove: lprm jobIDVerify: lpq shows job is gone


Verification / Alternative check:

Cross-check with CUPS logs (/var/log/cups/) and web UI if CUPS provides BSD-compatible lpr/lprm interfaces.


Why Other Options Are Wrong:

  • lpq: displays queue; does not remove.
  • lpr: submits jobs; opposite of removal.
  • lpc: printer control, not job deletion.
  • None: incorrect since lprm is correct.


Common Pitfalls:

  • Forgetting job IDs when multiple jobs exist; lpq helps identify them.
  • Confusing lprm with lpr (submission).


Final Answer:

lprm.

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion