1lpr(1) Apple Inc. lpr(1)
2
3
4
6 lpr - print files
7
9 lpr [ -E ] [ -H server[:port] ] [ -U username ] [ -P destina‐
10 tion[/instance] ] [ -# num-copies [ -h ] [ -l ] [ -m ] [ -o
11 option[=value] ] [ -p] [ -q ] [ -r ] [ -C/J/T title ] [ file(s) ]
12
14 lpr submits files for printing. Files named on the command line are
15 sent to the named printer (or the default destination if no destination
16 is specified). If no files are listed on the command-line, lpr reads
17 the print file from the standard input.
18
20 CUPS provides many ways to set the default destination. The "LPDEST"
21 and "PRINTER" environment variables are consulted first. If neither are
22 set, the current default set using the lpoptions(1) command is used,
23 followed by the default set using the lpadmin(8) command.
24
26 The following options are recognized by lpr:
27
28 -E
29 Forces encryption when connecting to the server.
30
31 -H server[:port]
32 Specifies an alternate server.
33
34 -C "name"
35
36 -J "name"
37
38 -T "name"
39 Sets the job name.
40
41 -P destination[/instance]
42 Prints files to the named printer.
43
44 -U username
45 Specifies an alternate username.
46
47 -# copies
48 Sets the number of copies to print from 1 to 100.
49
50 -h
51 Disables banner printing. This option is equivalent to "-o job-
52 sheets=none".
53
54 -l
55 Specifies that the print file is already formatted for the desti‐
56 nation and should be sent without filtering. This option is equiv‐
57 alent to "-o raw".
58
59 -m
60 Send an email on job completion.
61
62 -o option[=value]
63 Sets a job option.
64
65 -p
66 Specifies that the print file should be formatted with a shaded
67 header with the date, time, job name, and page number. This option
68 is equivalent to "-o prettyprint" and is only useful when printing
69 text files.
70
71 -q
72 Hold job for printing.
73
74 -r
75 Specifies that the named print files should be deleted after
76 printing them.
77
79 The "c", "d", "f", "g", "i", "n", "t", "v", and "w" options are not
80 supported by CUPS and produce a warning message if used.
81
83 cancel(1), lp(1), lpadmin(8), lpoptions(1), lpq(1), lprm(1), lpstat(1),
84 http://localhost:631/help
85
87 Copyright 2007-2009 by Apple Inc.
88
89
90
9129 August 2008 CUPS lpr(1)