1lp(1)                       Easy Software Products                       lp(1)
2
3
4

NAME

6       lp - print files
7

SYNOPSIS

9       lp  [  -E  ]  [ -U username ] [ -c ] [ -d destination[/instance] ] [ -h
10       hostname[:port] ] [ -m ] [ -n num-copies ] [ -o option[=value] ]  [  -q
11       priority  ] [ -s ] [ -t title ] [ -H handling ] [ -P page-list ] [ -- ]
12       [ file(s) ]
13       lp [ -E ] [ -U username ] [ -c ] [ -h hostname[:port] ] [ -i job-id ] [
14       -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -t title ] [ -H
15       handling ] [ -P page-list ]
16

DESCRIPTION

18       lp submits files for printing or alters a pending job. Use  a  filename
19       of "-" to force printing from the standard input.
20

OPTIONS

22       The following options are recognized by lp:
23
24       --
25            Marks  the  end  of  options;  use this to print a file whose name
26            begins with a dash (-).
27
28       -E
29            Forces encryption when connecting to the server.
30
31       -U username
32            Specifies the username to use when connecting to the server.
33
34       -c
35            This option is provided for backwards-compatibility only. On  sys‐
36            tems  that  support  it,  this  option forces the print file to be
37            copied to the spool directory  before  printing.  In  CUPS,  print
38            files  are always sent to the scheduler via IPP which has the same
39            effect.
40
41       -d destination
42            Prints files to the named printer.
43
44       -h hostname[:port]
45            Chooses an alternate server.
46
47       -i job-id
48            Specifies an existing job to modify.
49
50       -m
51            Sends an email when the job is completed.
52
53       -n copies
54            Sets the number of copies to print from 1 to 100.
55
56       -o "name=value [name=value ...]"
57            Sets one or more job options.
58
59       -q priority
60            Sets the job priority  from  1  (lowest)  to  100  (highest).  The
61            default priority is 50.
62
63       -s
64            Do not report the resulting job IDs (silent mode.)
65
66       -t "name"
67            Sets the job name.
68
69       -u username
70            Submits jobs as username.
71
72       -H hh:mm
73
74       -H hold
75
76       -H immediate
77
78       -H restart
79
80       -H resume
81            Specifies  when  the  job  should be printed. A value of immediate
82            will print the file immediately, a value of hold will hold the job
83            indefinitely, and a time value (HH:MM) will hold the job until the
84            specified time. Use a value of resume with the -i option to resume
85            a  held job.  Use a value of restart with the -i option to restart
86            a completed job.
87
88       -P page-list
89            Specifies which pages to print in the document. The list can  con‐
90            tain  a list of numbers and ranges (#-#) separated by commas (e.g.
91            1,3-5,16).
92

COMMON JOB OPTIONS

94       Aside from the printer-specific options reported  by  the  lpoptions(1)
95       command, the following generic options are available:
96
97       -o media=size
98            Sets  the  page  size  to size. Most printers support at least the
99            size names "a4", "letter", and "legal".
100
101       -o landscape
102
103       -o orientation-requested=4
104            Prints the job in landscape (rotated 90 degrees).
105
106       -o sides=one-sided
107
108       -o sides=two-sided-long-edge
109
110       -o sides=two-sided-short-edge
111            Prints on one or two sides of the  paper.  The  value  "two-sided-
112            long-edge"  is  normally  used  when printing portrait (unrotated)
113            pages, while "two-sided-short-edge" is used for landscape pages.
114
115       -o fitplot
116            Scales the print file to fit on the page.
117
118       -o scaling=number
119            Scales image files to use up to number percent of the page.   Val‐
120            ues  greater  than  100  cause the image file to be printed across
121            multiple pages.
122
123       -o cpi=N
124            Sets the number of characters per inch to use when printing a text
125            file. The default is 10.
126
127       -o lpi=N
128            Sets  the  number  of  lines  per inch to use when printing a text
129            file. The default is 6.
130
131       -o page-bottom=N
132
133       -o page-left=N
134
135       -o page-right=N
136
137       -o page-top=N
138            Sets the page margins when printing text files. The values are  in
139            points - there are 72 points to the inch.
140

EXAMPLES

142       Print a double-sided legal document to a printer called "foo":
143           lp -d foo -o media=legal -o sides=two-sided-long-edge filename
144
145       Print an image across 4 pages:
146           lp -d bar -o scaling=200 filename
147
148       Print  a text file with 12 characters per inch, 8 lines per inch, and a
149       1 inch left margin:
150           lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename
151

COMPATIBILITY

153       Unlike the System V printing system, CUPS allows printer names to  con‐
154       tain  any  printable  character  except SPACE, TAB, "/", or "#".  Also,
155       printer and class names are not case-sensitive.
156
157       The "q" option accepts a different range of values than the Solaris  lp
158       command,  matching  the  IPP job priority values (1-100, 100 is highest
159       priority) instead of the Solaris values (0-39, 0 is highest priority).
160

SEE ALSO

162       cancel(1), lpmove(8), lpoptions(1), lpstat(1),
163       http://localhost:631/help
164
166       Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
167
168
169
17023 March 2006             Common UNIX Printing System                    lp(1)
Impressum