lpr (UCB, Linux)—sends output to a printer

lpr [ -Pprinter ] [ -#copies ] [ -Cclass ] [ -Jjob ] [ -Ttitle ]
   [ -i [ indent ] ] [ -1234font ] [ -wcols ] [ -r ] [ -m ] [ -h ]
   [ -s ] [ -filter-option ] [ filename … ]

lpr creates a printer job in a spooling area for subsequent printing as facilities become available. Each printer job consists of a control job and one or more data files.

Example A.38.
1  lpr -#5 filea fileb
2  lpr -PShakespeare filex
				

Explanation

  1. Send five copies of filea and fileb to the printer.

  2. Specify Shakespeare as the printer where filex will be printed.

Get Linux Shells by Example 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.