Printing (Topic 1.107)

Review Questions

  1. What does lpd do to handle incoming print jobs destined for empty print queues?

  2. Describe the kinds of information included in /etc/printcap.

  3. What is the function of a print filter?

  4. What does the -P option specify to the print commands?

  5. When is it useful to pipe into the standard input of lpr instead of simply using a filename as an argument?

  6. How is the Ghostscript program used in printing to a non-PostScript printer?

  7. What filter is used on a Linux system to print to remote printers on Windows clients?

Exercises

  1. On a system with an existing printer, examine /etc/printcap. Which print filter is used for the printer? Which queue or queues are directed at the printer?

  2. Check the printer status with lpq -P printer and lpc status. Print to the queue using lpr -P printer file.

  3. Examine /var/spool/lpd for the spool directory of your print queue. Examine the files you find there.

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.