Name
lpr
Synopsis
lpr [options
] [files
]
Send files to the printer. On Solaris, this is the original BSD interface, in /usr/ucb/lpr; see lpr(1B) for more information. This entry documents the CUPS version, which is used on GNU/Linux and Mac OS X.
URL: http://www.cups.org. By default, CUPS makes its online documentation available via web browser at http://localhost:631/documentation.html.
Options
-
-#
count
Print count copies (100 maximum).
-
-C
name
Set the job name.
-
-E
Encrypt the connection to the server.
-
-J
name
Same as
-C
.-
-l
The print file is in binary form, ready to be printed. Do not apply any filtering. Equivalent to
-oraw
.-
-o
option
Set a job option. See the online documentation for more details.
-
-p
Supply a shaded header with the date, time, job name, and page number. Equivalent to
-oprettyprint
.-
-P
destination
Print files to the named printer.
-
-r
Remove the files after printing them.
-
-T
name
Same as
-C
.
The original BSD and LPRng lpr options -c
,
-d
, -f
, -g
,
-i
, -m
, -n
,
-t
, -v
, and -w
are not supported and produce a warning message if used.
Get Unix in a Nutshell, 4th Edition 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.