3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
9 <h1 class=
"title">lpr(
1)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
19 <i>destination[/instance]
</i>
22 [ -h ] [ -l ] [ -m ] [ -o
24 ] [ -p] [ -q ] [ -r ] [ -C/J/T
29 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
30 <i>lpr
</i> submits files for printing. Files named on the command
31 line are sent to the named printer (or the default destination if no
32 destination is specified). If no files are listed on the command-line,
33 <i>lpr
</i> reads the print file from the standard input.
34 <h2 class=
"title"><a name=
"THE_DEFAULT_DESTINATION">The Default Destination
</a></h2>
35 CUPS provides many ways to set the default destination. The
"LPDEST" and
36 "PRINTER" environment variables are consulted first. If neither are set,
37 the current default set using the
<i>lpoptions(
1)
</i> command is used,
38 followed by the default set using the
<i>lpadmin(
8)
</i> command.
39 <h2 class=
"title"><a name=
"OPTIONS">Options
</a></h2>
40 The following options are recognized by
<i>lpr
</i>:
41 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-E
44 Forces encryption when connecting to the server.
45 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-H server[:port]
48 Specifies an alternate server.
49 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-C
"name"
51 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-J
"name"
53 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-T
"name"
57 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-P destination[/instance]
60 Prints files to the named printer.
61 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-U username
64 Specifies an alternate username.
65 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-#
<i>copies
</i>
68 Sets the number of copies to print from
1 to
100.
69 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-h
72 Disables banner printing. This option is equivalent to
"-o
74 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-l
77 Specifies that the print file is already formatted for the
78 destination and should be sent without filtering. This option is
79 equivalent to
"-o raw".
80 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-m
83 Send an email on job completion.
84 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o option[=value]
88 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-p
91 Specifies that the print file should be formatted with a shaded
92 header with the date, time, job name, and page number. This
93 option is equivalent to
"-o prettyprint" and is only useful when
95 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-q
98 Hold job for printing.
99 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-r
102 Specifies that the named print files should be deleted after
104 <h2 class=
"title"><a name=
"COMPATIBILITY">Compatibility
</a></h2>
105 The
"c",
"d",
"f",
"g",
"i",
"n",
"t",
"v", and
"w" options
106 are not supported by CUPS and produce a warning message if used.
107 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
108 <i>cancel(
1)
</i>,
<i>lp(
1)
</i>,
<i>lpadmin(
8)
</i>,
<i>lpoptions(
1)
</i>,
109 <i>lpq(
1)
</i>,
<i>lprm(
1)
</i>,
<i>lpstat(
1)
</i>,
111 <a href=
"http://localhost:631/help">http://localhost:
631/help
</a>
112 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
113 Copyright
2007-
2013 by Apple Inc.