TrumanWong

lpr

Send the file to the specified printer for printing

Supplementary instructions

lpr command is used to send files to the specified printer for printing. If the target printer is not specified, the default printer is used.

grammar

lpr(options)(parameters)

Options

-E: Force encryption when connecting to the print server;
-H: Specify an optional print server;
-C: Specify the name of the print task;
-P: Specify the target printer to accept the print task;
-U: Specify an optional username;
-#: Specify the number of copies to print;
-h: Turn off banner printing;
-m: Send E-mail after printing is completed;
-r: Delete the file after printing is completed.

Parameters

File: File to be printed.

Example

Send man1 and man2 to printer lp for printing:

lpr -P lp man1 man2