lpr

From Initq

Jump to: navigation, search

The Line Printer Daemon protocol/Line Printer Remote protocol (or LPD, LPR) also known as the Berkeley printing system, is a set of programs that provide printer spooling and network print server functionality for Unix-like systems. The most common implementations of LPD are the official BSD UNIX operating system and the LPRng project. The Common Unix Printing System (or CUPS), which is more common on modern Linux distributions, borrows heavily from LPD. Commercial solutions are available that also leverage Berkeley printing protocol components, where more robust functionality and performance is necessary than is available from LPR/LPD (or CUPS) alone (such as might be required in large corporate environments).

Lets say you want to print the profile but want it neat so you can take notes.

cat -n /etc/profile | pr -d | lpr

Contents

Commands

The official LPD protocol defines the following commands:

  • lpr—Assign a job to a queue.
  • lpq—Display the jobs assigned to a queue and their print status.
  • lprm—Remove a job from a queue.
  • lpc—Control a queue.

The lpd program provides the daemon and queues with which the aforementioned

Clearing the Queue

  • cancel -a

Looking at the queue

  • lpstat -o
  • lpstat -t | grep <queue name>

CPU at 100%

In cupsd.conf , check out these.

PreserveJobFiles Off

AutoPurgeJobs Yes

Personal tools