Difficulty: Easy
Correct Answer: lp
Explanation:
Introduction / Context:
Unix printing relies on a spooler that queues jobs. Users submit jobs via commands that differ slightly across Unix flavors. Recognizing the standard submission command helps in scripts and day-to-day operations.
Given Data / Assumptions:
Concept / Approach:
The lp command submits a print job to the line printer system (System V lineage). Typical usage is lp filename, with options to select destination printers and copies. On BSD-like systems, the counterpart is lpr, but lp remains a correct and common answer in many Unix distributions.
Step-by-Step Solution:
Verification / Alternative check:
Running lp /etc/hosts returns a job ID if the spooler is configured. The job can be monitored with lpstat. This validates that lp is used for printing.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing System V (lp) with BSD (lpr). On some systems, both commands exist and map to the same underlying CUPS interface; still, 'lp' is fully correct for Unix printing.
Final Answer:
lp
Discussion & Comments