102-500 practice question 12 of 30

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Full set: 233 questions
Answer options
A: lpd
B: lpp
C: lpq
D: lpr Correct answer
Correct Answer:
D. lpr
Explanation

The Common UNIX Printing System (CUPS) was designed as a modern replacement for older printing systems like the Berkeley LPD/LPR system. To ensure backward compatibility and ease the transition for users and scripts, CUPS provides a suite of legacy commands that mimic the functionality of the original BSD tools. The lpr (line printer remote) command is the specific utility provided for this purpose, allowing users to send files to a CUPS-managed printer queue directly from the command line, just as they would with the traditional LPD system.

Why Incorrect

A. lpd is the name of the line printer daemon (a server process), not a command used by a client to send a print job.
B. lpp is not a standard command in either the legacy BSD printing system or the CUPS suite.
C. lpq is the command used to query the status of the print queue to see pending jobs, not to submit a new job.

References

1. CUPS Official Documentation, "Command-Line Printing and Options", Section "BSD COMMANDS". The documentation explicitly lists lpr with the description "print files".

2. lpr(1) man page from a standard Linux distribution (e.g., Debian, Ubuntu). The man page description states: "lpr submits files for printing. Files named on the command line are sent to the named printer (or the default destination if no destination is specified)."

3. Oracle Solaris 11.4 Documentation, "Setting Up and Administering Printers by Using CUPS Command-Line Utilities", Section "Submitting a Print Request to a Printer". It confirms lpr is a command to submit print requests.

Scroll to Top