]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lpr.man
Update .gitignore to ignore compressed man pages.
[thirdparty/cups.git] / man / lpr.man
CommitLineData
ef416fc2 1.\"
cfa19b58 2.\" lpr man page for CUPS.
ef416fc2 3.\"
8e52928c
MS
4.\" Copyright © 2007-2018 by Apple Inc.
5.\" Copyright © 1997-2006 by Easy Software Products.
ef416fc2 6.\"
8e52928c
MS
7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
8.\" information.
ef416fc2 9.\"
8e52928c 10.TH lpr 1 "CUPS" "6 December 2018" "Apple Inc."
ef416fc2 11.SH NAME
12lpr \- print files
13.SH SYNOPSIS
14.B lpr
cfa19b58
MS
15[
16.B \-E
17] [
18\fB\-H \fIserver\fR[\fB:\fIport\fR]
19] [
20.B \-U
ef416fc2 21.I username
cfa19b58
MS
22] [
23\fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
24] [
25.B \-#
ef416fc2 26.I num-copies
cfa19b58
MS
27[
28.B \-h
29] [
30.B \-l
31] [
32.B \-m
33] [
34\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
35] [
36.B \-p
37] [
38.B \-q
39] [
40.B \-r
41] [
42.B \-C
43.I title
44] [
45.B \-J
46.I title
47] [
48.B \-T
ef416fc2 49.I title
50] [
51.I file(s)
52]
53.SH DESCRIPTION
cfa19b58
MS
54\fBlpr\fR submits files for printing.
55Files named on the command line are sent to the named printer or the default destination if no destination is specified.
56If no files are listed on the command-line, \fBlpr\fR reads the print file from the standard input.
57.SS THE DEFAULT DESTINATION
58CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first.
59If neither are set, the current default set using the
60.BR lpoptions (1)
61command is used, followed by the default set using the
62.BR lpadmin (8)
63command.
ef416fc2 64.SH OPTIONS
bd7854cb 65The following options are recognized by \fIlpr\fR:
ef416fc2 66.TP 5
cfa19b58 67.B \-E
ef416fc2 68Forces encryption when connecting to the server.
69.TP 5
cfa19b58 70\fB\-H \fIserver\fR[\fB:\fIport\fR]
bd7854cb 71Specifies an alternate server.
ef416fc2 72.TP 5
cfa19b58 73\fB\-C "\fIname\fB"\fR
bd7854cb 74.TP 5
cfa19b58 75\fB\-J "\fIname\fB"\fR
ef416fc2 76.TP 5
cfa19b58
MS
77\fB\-T "\fIname\fB"\fR
78Sets the job name/title.
ef416fc2 79.TP 5
cfa19b58 80\fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
bd7854cb 81Prints files to the named printer.
ef416fc2 82.TP 5
cfa19b58 83\fB\-U \fIusername\fR
bd7854cb 84Specifies an alternate username.
ef416fc2 85.TP 5
cfa19b58
MS
86\fB\-# \fIcopies\fR
87Sets the number of copies to print.
bd7854cb 88.TP 5
cfa19b58
MS
89.B \-h
90Disables banner printing. This option is equivalent to \fI-o job\-sheets=none\fR.
ef416fc2 91.TP 5
cfa19b58
MS
92.B \-l
93Specifies that the print file is already formatted for the destination and should be sent without filtering.
94This option is equivalent to \fI-o raw\fR.
ef416fc2 95.TP 5
cfa19b58 96.B \-m
bd7854cb 97Send an email on job completion.
98.TP 5
cfa19b58 99\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
ef416fc2 100Sets a job option.
40df01c1 101See "COMMON JOB OPTIONS" below.
ef416fc2 102.TP 5
cfa19b58
MS
103.B \-p
104Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
105This option is equivalent to \fI\-o prettyprint\fR and is only useful when printing text files.
bd7854cb 106.TP 5
cfa19b58 107.B \-q
bd7854cb 108Hold job for printing.
ef416fc2 109.TP 5
cfa19b58
MS
110.B \-r
111Specifies that the named print files should be deleted after submitting them.
40df01c1
MS
112.SS COMMON JOB OPTIONS
113Aside from the printer-specific options reported by the
114.BR lpoptions (1)
115command, the following generic options are available:
116.TP 5
40df01c1
MS
117\fB\-o job-sheets=\fIname\fR\fR
118Prints a cover page (banner) with the document.
119The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified".
120.TP 5
40df01c1
MS
121\fB\-o media=\fIsize\fR
122Sets the page size to \fIsize\fR. Most printers support at least the size names "a4", "letter", and "legal".
123.TP 5
40df01c1
MS
124\fB\-o number\-up=\fR{\fI2|4|6|9|16\fR}
125Prints 2, 4, 6, 9, or 16 document (input) pages on each output page.
126.TP 5
40df01c1
MS
127\fB\-o orientation\-requested=4\fR
128Prints the job in landscape (rotated 90 degrees counter-clockwise).
129.TP 5
130\fB\-o orientation\-requested=5\fR
131Prints the job in landscape (rotated 90 degrees clockwise).
132.TP 5
133\fB\-o orientation\-requested=6\fR
134Prints the job in reverse portrait (rotated 180 degrees).
135.TP 5
8e52928c 136\fB\-o print\-quality=3\fR
40df01c1 137.TP 5
8e52928c 138\fB\-o print\-quality=4\fR
40df01c1 139.TP 5
8e52928c
MS
140\fB\-o print\-quality=5\fR
141Specifies the output quality - draft (3), normal (4), or best (5).
40df01c1
MS
142.TP 5
143\fB\-o sides=one\-sided\fR
144Prints on one side of the paper.
145.TP 5
146\fB\-o sides=two\-sided\-long\-edge\fR
147Prints on both sides of the paper for portrait output.
148.TP 5
149\fB\-o sides=two\-sided\-short\-edge\fR
150Prints on both sides of the paper for landscape output.
cfa19b58
MS
151.SH NOTES
152The \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.
153.SH EXAMPLES
154Print two copies of a document to the default printer:
155.nf
156
157 lpr -# 2 filename
158
159.fi
160Print a double-sided legal document to a printer called "foo":
161.nf
162
163 lpr -P foo -o media=legal -o sides=two-sided-long-edge filename
164
165.fi
166Print a presentation document 2-up to a printer called "foo":
167.nf
168
169 lpr -P foo -o number-up=2 filename
170.fi
ef416fc2 171.SH SEE ALSO
cfa19b58
MS
172.BR cancel (1),
173.BR lp (1),
174.BR lpadmin (8),
175.BR lpoptions (1),
176.BR lpq (1),
177.BR lprm (1),
178.BR lpstat (1),
179CUPS Online Help (http://localhost:631/help)
ef416fc2 180.SH COPYRIGHT
f61dfc0d 181Copyright \[co] 2007-2018 by Apple Inc.