2 .\" lpr man page for CUPS.
4 .\" Copyright © 2007-2019 by Apple Inc.
5 .\" Copyright © 1997-2006 by Easy Software Products.
7 .\" Licensed under Apache License v2.0. See the file "LICENSE" for more
10 .TH lpr 1 "CUPS" "26 April 2019" "Apple Inc."
18 \fB\-H \fIserver\fR[\fB:\fIport\fR]
23 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
34 \fB\-o \fIoption\fR[\fB=\fIvalue\fR]
54 \fBlpr\fR submits files for printing.
55 Files named on the command line are sent to the named printer or the default destination if no destination is specified.
56 If no files are listed on the command-line, \fBlpr\fR reads the print file from the standard input.
57 .SS THE DEFAULT DESTINATION
58 CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first.
59 If neither are set, the current default set using the
61 command is used, followed by the default set using the
65 The following options are recognized by \fIlpr\fR:
68 Forces encryption when connecting to the server.
70 \fB\-H \fIserver\fR[\fB:\fIport\fR]
71 Specifies an alternate server.
73 \fB\-C "\fIname\fB"\fR
75 \fB\-J "\fIname\fB"\fR
77 \fB\-T "\fIname\fB"\fR
78 Sets the job name/title.
80 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
81 Prints files to the named printer.
84 Specifies an alternate username.
87 Sets the number of copies to print.
90 Disables banner printing. This option is equivalent to \fI-o job\-sheets=none\fR.
93 Specifies that the print file is already formatted for the destination and should be sent without filtering.
94 This option is equivalent to \fI-o raw\fR.
97 Send an email on job completion.
99 \fB\-o \fIoption\fR[\fB=\fIvalue\fR]
101 See "COMMON JOB OPTIONS" below.
104 Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
105 This option is equivalent to \fI\-o prettyprint\fR and is only useful when printing text files.
108 Hold job for printing.
111 Specifies that the named print files should be deleted after submitting them.
112 .SS COMMON JOB OPTIONS
113 Aside from the printer-specific options reported by the
115 command, the following generic options are available:
117 \fB\-o job-sheets=\fIname\fR\fR
118 Prints a cover page (banner) with the document.
119 The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified".
121 \fB\-o media=\fIsize\fR
122 Sets the page size to \fIsize\fR. Most printers support at least the size names "a4", "letter", and "legal".
124 \fB\-o number\-up=\fR{\fI2|4|6|9|16\fR}
125 Prints 2, 4, 6, 9, or 16 document (input) pages on each output page.
127 \fB\-o orientation\-requested=4\fR
128 Prints the job in landscape (rotated 90 degrees counter-clockwise).
130 \fB\-o orientation\-requested=5\fR
131 Prints the job in landscape (rotated 90 degrees clockwise).
133 \fB\-o orientation\-requested=6\fR
134 Prints the job in reverse portrait (rotated 180 degrees).
136 \fB\-o print\-quality=3\fR
138 \fB\-o print\-quality=4\fR
140 \fB\-o print\-quality=5\fR
141 Specifies the output quality - draft (3), normal (4), or best (5).
143 \fB\-o sides=one\-sided\fR
144 Prints on one side of the paper.
146 \fB\-o sides=two\-sided\-long\-edge\fR
147 Prints on both sides of the paper for portrait output.
149 \fB\-o sides=two\-sided\-short\-edge\fR
150 Prints on both sides of the paper for landscape output.
152 The \fI\-c\fR, \fI\-d\fR, \fI\-f\fR, \fI\-g\fR, \fI\-i\fR, \fI\-n\fR, \fI\-t\fR, \fI\-v\fR, and \fI\-w\fR options are not supported by CUPS and produce a warning message if used.
154 Print two copies of a document to the default printer:
160 Print a double-sided legal document to a printer called "foo":
163 lpr -P foo -o media=legal -o sides=two-sided-long-edge filename
166 Print a presentation document 2-up to a printer called "foo":
169 lpr -P foo -o number-up=2 filename
179 CUPS Online Help (http://localhost:631/help)
181 Copyright \[co] 2007-2019 by Apple Inc.