Printing Commands, BSD-type


Table of Contents

Berkeley versions of printing 
cmd:lpr 
Printing via Unix cmd:lpr 
printer queue handling 
Usage 
Help 
Symptom 
Solution 

Berkeley versions of printing 

The Berkeley versions of the UNIX operating system provide line printer spooling with a collection of programs: lpr (assign to queue), lpq (display the queue), lprm (remove from queue), and lpc (control the queue). These programs interact with an autonomous process called the line printer daemon.

cmd:lpr 

Usage 

lpr -C"letter hduplex"

Help 

-# number Prints a specific number of copies. Specify number as a positive integer. The default for number is 1.

-C class Prints class as the job classification on the banner page of the output. Enclose class in double quotes if it contains blanks. If class is not specified, the name of the system (as returned by hostname) is printed as the job classification. See hostname(1) .

-m Sends mail after file has printed (see mail(1) ). By default, no mail is sent upon normal completion of a print request.

-h Suppresses printing of the banner page of the output.

-P destination Prints file on a specific printer

documented on: 16:58:07