lp (ATT, Linux)—sends output to a printer

lp [ -cmsw ] [ -ddest ] [ -number ] [ -ooption ] [ -ttitle ] filename …
cancel [ ids ] [ printers ]

lp, cancel sends or cancels requests to a lineprinter.

Example A.37.
1 lp -n5 filea fileb
2 lp -dShakespeare 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.