The Print Process

After it leaves your application, lpr takes the print job and preprocesses it according to any command line options or printer-specific configuration requirements. The resultant file and a paired file containing processing instructions are placed in a directory associated with the printer, called a spool directory or print queue (usually /var/spool/lpd/*). Print jobs stored in these directories are said to be spooled or queued. Multiple jobs may wait in these directories until the printer is ready to handle them. Once the file is successfully spooled, lpr notifies the printer daemon, lpd, that there is a new job awaiting processing.

The printer daemon filters the file according to the instructions left for it by lpr and passes ...

Get Linux® Desk Reference, Second 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.