3 <META NAME="Description" CONTENT="Common UNIX Printing System Software Users Manual">
4 <META NAME="COPYRIGHT" CONTENT="Copyright 1997-2001, All Rights Reserved">
5 <META NAME="DOCNUMBER" CONTENT="CUPS-SUM-1.1.7">
6 <META NAME="Author" CONTENT="Easy Software Products">
7 <TITLE>CUPS Software Users Manual</TITLE>
11 <H1 ALIGN="RIGHT">Preface</H1>
13 <P>This software users manual describes how to use the Common UNIX Printing
14 System<SUP>TM</SUP> ("CUPS<SUP>TM</SUP>") Version 1.1.7.
16 <EMBED SRC="system-overview.shtml">
19 <H2>Document Overview</H2>
21 <P>This software users manual is organized into the following sections:</P>
24 <LI><A HREF="#OVERVIEW">1 - Printing System Overview</A>
25 <LI><A HREF="#USING_SYSTEM">2 - Using the Printing System</A>
26 <LI><A HREF="#STANDARD_OPTIONS">3 - Standard Printer Options</A>
27 <LI><A HREF="#SAVING_OPTIONS">4 - Saving Printer Options and Defaults</A>
28 <LI><A HREF="#LICENSE">A - Software License Agreement</A>
31 <H2>Notation Conventions</H2>
33 <P>Various font and syntax conventions are used in this guide. Examples and
34 their meanings and uses are explained below:
36 <CENTER><TABLE WIDTH="80%">
39 <TD> </TD>
42 <TR><TD> </TD></TR>
44 <TD><CODE>lpstat</CODE><BR>
45 <CODE>lpstat(1)</CODE></TD>
47 <TD> </TD>
49 <TD>The names of commands; the first mention of a command or
50 function in a chapter is followed by a manual page section
53 <TR><TD> </TD></TR>
55 <TD><VAR>/var</VAR><BR>
56 <VAR>/usr/share/cups/data/testprint.ps</VAR></TD>
58 <TD> </TD>
60 <TD>File and directory names.</TD>
62 <TR><TD> </TD></TR>
64 <TD NOWRAP><TT>Request ID is Printer-123</TT></TD>
66 <TD> </TD>
68 <TD>Screen output.</TD>
70 <TR><TD> </TD></TR>
72 <TD NOWRAP><KBD>lp -d printer filename ENTER</KBD></TD>
74 <TD> </TD>
76 <TD>Literal user input; special keys like <KBD>ENTER</B></KBD> are
79 <TR><TD> </TD></TR>
83 <TD> </TD>
85 <TD>Numbers in the text are written using the period (.) to indicate
86 the decimal point.</TD>
91 <H2>Abbreviations</H2>
93 The following abbreviations are used throughout this manual:
99 <DD>Kilobytes, or 1024 bytes<BR>
102 <DD>Megabytes, or 1048576 bytes<BR>
105 <DD>Gigabytes, or 1073741824 bytes<BR>
110 <H2>Other References</H2>
115 <DT>CUPS Software Administrators Manual
117 <DD>An administration guide for the CUPS software.<BR>
119 <DT>CUPS Software Programmers Manual
121 <DD>A programmer guide for interfacing with and/or extending the CUPS
128 <EMBED SRC="printing-overview.shtml">
131 <H1 ALIGN="RIGHT"><A NAME="USING_SYSTEM">2 - Using the Printing System</A></H1>
133 <P>This chapter shows you how to submit, query, and cancel print jobs to
136 <H2>Submitting Files for Printing</H2>
138 <P>CUPS provides both the System V (<CODE>lp(1)</CODE>) and Berkeley
139 (<CODE>lpr(1)</CODE>) printing commands. Type the following command to
140 print a file to the default (or only) printer on the system:
143 <B>lp filename ENTER</B>
149 <B>lpr filename ENTER</B>
152 <P>CUPS understands many different types of files directly, including
153 PostScript and image files. This allows you to print from inside your
154 applications or at the command-line, whichever is most convenient!
156 <H2>Choosing a Printer</H2>
158 <P>Many systems will have more than one printer available to the user. These
159 printers can be attached to the local system via a parallel, serial, or USB
160 port, or available over the network.
162 <P>Use the <CODE>lpstat(1)</CODE> command to see a list of available printers:
165 <B>lpstat -p -d ENTER</B>
168 <P>The <CODE>-p</CODE> option specifies that you want to see a list of
169 printers, and the <CODE>-d</CODE> option reports the current system
170 default printer or class.
172 <P>Use the <CODE>-d</CODE> option with the <CODE>lp</CODE> command to
173 print to a specific printer:
176 <B>lp -d printer filename ENTER</B>
179 <P>or the <CODE>-P</CODE> option with the <CODE>lpr</CODE> command:
182 <B>lpr -P printer filename ENTER</B>
185 <H2>Setting Printer Options</H2>
187 <P>For many types of files, the default printer options may be sufficient for
188 your needs. However, there may be times when you need to change the options
189 for a particular file you are printing.
191 <P>The <CODE>lp</CODE> and <CODE>lpr</CODE> commands allow you to pass
192 printer options using the <CODE>-o</CODE> option:
195 <B>lp -o landscape -o scaling=75 -o media=A4 filename.jpg
196 <B>lpr -o landscape -o scaling=75 -o media=A4 filename.jpg
199 <P>The available printer options vary depending on the printer. The standard
200 options are described in <A HREF="#STANDARD_OPTIONS">Chapter 3, "Standard
201 Printing Options"</A>.
203 <H2>Printing Multiple Copies</H2>
205 <P>Both the <CODE>lp</CODE> and <CODE>lpr</CODE> commands have options for
206 printing more than one copy of a file:
209 <B>lp -n <I>num-copies</I> filename ENTER</B>
210 <B>lpr -#<I>num-copies</I> filename ENTER</B>
213 <P>Copies are normally <I>not</I> collated for you. Use the <CODE>-o
214 Collate=True</CODE> option to get collated copies :
217 <B>lp -n <I>num-copies</I> -o Collate=True filename ENTER</B>
218 <B>lpr -#<I>num-copies</I> -o Collate=True filename ENTER</B>
222 <H2>Checking the Printer Status from the Command-Line</H2>
224 <P>The <CODE>lpstat</CODE> command can be used to check for jobs that you
225 have submitted for printing:
229 Printer-1 johndoe 4427776
230 Printer-2 johndoe 15786
231 Printer-3 johndoe 372842
234 <P>The jobs are listed in the order they will be printed. Use the
235 <CODE>-p</CODE> option to see which files and printers are active:
238 <B>lpstat -p ENTER</B>
239 printer DeskJet now printing DeskJet-1.
243 <P>Use the <CODE>-o</CODE> and <CODE>-p</CODE> options together to show
244 the jobs and the printers:
247 <B>lpstat -o -p ENTER</B>
248 Printer-1 johndoe 4427776
249 Printer-2 johndoe 15786
250 Printer-3 johndoe 372842
251 printer DeskJet now printing DeskJet-1.
254 <H2>Checking the Printer Status from the Web</H2>
256 <P>Since CUPS uses the Internet Printing Protocol, it is also a
257 fully-functional web server. To use your web browser to monitor the
258 printers on your system, open the URL:
261 <A HREF="http://localhost:631">http://localhost:631</A>
264 <P>From there you can view the status of classes, jobs, and printers
265 with the click of a button!
267 <H2>Canceling a Print Job</H2>
269 <P>The <CODE>cancel(1)</CODE> and <CODE>lprm(1)</CODE> commands cancel
273 <B>cancel <I>job-id</I> ENTER</B>
274 <B>lprm <I>job-id</I> ENTER</B>
277 <P>The <CODE>job-id</CODE> is the number that was reported to you by
278 the <CODE>lp</CODE> or <CODE>lpstat</CODE> commands.
281 <H1 ALIGN="RIGHT"><A NAME="STANDARD_OPTIONS">3 - Standard Printer Options</A></H1>
283 <P>This chapter describes the standard printer options that are available
284 when printing with the <CODE>lp</CODE> and <CODE>lpr</CODE> commands.
286 <H2>General Options</H2>
288 <P>The following options apply when printing all types of files.
290 <H3>Setting the Orientation</H3>
292 <P>The <CODE>-o landscape</CODE> option will rotate the page 90 degrees
293 to print in landscape orientation:
296 <B>lp -o landscape filename ENTER</B>
297 <B>lpr -o landscape filename ENTER</B>
301 <H3>Selecting the Media Size, Type, and Source</H3>
303 <P>The <CODE>-o media=xyz</CODE> option sets the media size, type,
307 <B>lp -o media=Letter filename ENTER</B>
308 <B>lp -o media=Letter,MultiPurpose filename ENTER</B>
309 <B>lpr -o media=Letter,Transparency filename ENTER</B>
310 <B>lpr -o media=Letter,MultiPurpose,Transparency filename ENTER</B>
314 <P>The available media sizes, types, and sources depend on the printer, but
315 most support the following options (case is not significant):
319 <LI><CODE>Letter</CODE> - US Letter (8.5x11 inches, or 216x279mm)
321 <LI><CODE>Legal</CODE> - US Legal (8.5x14 inches, or 216x356mm)
323 <LI><CODE>A4</CODE> - ISO A4 (8.27x11.69 inches, or 210x297mm)
325 <LI><CODE>COM10</CODE> - US #10 Envelope (9.5x4.125 inches, or
328 <LI><CODE>DL</CODE> - ISO DL Envelope (8.66x4.33 inches, or 220x110mm)
330 <LI><CODE>Transparency</CODE> - Transparency media type or source
332 <LI><CODE>Upper</CODE> - Upper paper tray
334 <LI><CODE>Lower</CODE> - Lower paper tray
336 <LI><CODE>MultiPurpose</CODE> - Multi-purpose paper tray
338 <LI><CODE>LargeCapacity</CODE> - Large capacity paper tray
342 <P>The actual options supported are defined in the printer's PPD file
343 in the <CODE>PageSize</CODE>, <CODE>InputSlot</CODE>, and
344 <CODE>MediaType</CODE> options.
346 <H3>Printing On Both Sides of the Paper</H3>
348 <P>The <CODE>-o sides=two-sided-short-edge</CODE> and <CODE>-o
349 sides=two-sided-long-edge</CODE> options will enable duplexing on the
350 printer, if the printer supports it. The <CODE>-o
351 sides=two-sided-short-edge</CODE> option is suitable for landscape
352 pages, while the <CODE>-o sides=two-sided-long-edge</CODE> option is
353 suitable for portrait pages:
356 <B>lp -o sides=two-sided-short-edge filename ENTER</B>
357 <B>lp -o sides=two-sided-long-edge filename ENTER</B>
358 <B>lpr -o sides=two-sided-long-edge filename ENTER</B>
361 <P>The default is to print single-sided:
364 <B>lp -o sides=one-sided filename ENTER</B>
365 <B>lpr -o sides=one-sided filename ENTER</B>
368 <H2>Banner Options</H2>
370 <P>The following options apply when printing all types of files.
372 <H3>Selecting the Banner Page(s)</H3>
374 <P>The <CODE>-o jobsheets=start,end</CODE> option sets the banner page(s) to
378 <B>lp -o job-sheets=none filename ENTER</B>
379 <B>lp -o job-sheets=standard filename ENTER</B>
380 <B>lpr -o job-sheets=classified,classified filename ENTER</B>
383 <P>If only one banner file is specified, it will be printed before the
384 files in the job. If a second banner file is specified, it is printed after
385 the files in the job.
387 <P>The available banner pages depend on the local system configuration; CUPS
388 includes the following banner files:
392 <LI><CODE>none</CODE> - Do not produce a banner page.
394 <LI><CODE>classified</CODE> - A banner page with a "classified"
395 label at the top and bottom.
397 <LI><CODE>confidential</CODE> - A banner page with a
398 "confidential" label at the top and bottom.
400 <LI><CODE>secret</CODE> - A banner page with a "secret" label
401 at the top and bottom.
403 <LI><CODE>standard</CODE> - A banner page with no label at the
406 <LI><CODE>topsecret</CODE> - A banner page with a "top secret"
407 label at the top and bottom.
409 <LI><CODE>unclassified</CODE> - A banner page with an
410 "unclassified" label at the top and bottom.
414 <H2>Document Options</H2>
416 <P>The following options apply when printing all types of files.
418 <H3>Selecting a Range of Pages</H3>
420 <P>The <CODE>-o page-ranges=pages</CODE> option selects a range of
424 <B>lp -o page-ranges=1 filename ENTER</B>
425 <B>lp -o page-ranges=1-4 filename ENTER</B>
426 <B>lp -o page-ranges=1-4,7,9-12 filename ENTER</B>
427 <B>lpr -o page-ranges=1-4,7,9-12 filename ENTER</B>
430 <P>As shown above, the <CODE>pages</CODE> value can be a single page, a
431 range of pages, or a collection of page numbers and ranges separated by
432 commas. The pages will always be printed in ascending order, regardless
433 of the order of the pages in the <CODE>page-ranges</CODE> option.
435 <P>The default is to print all pages.
437 <H3>Selecting Even or Odd Pages</H3>
439 <P>Use the <CODE>-o page-set=set</CODE> option to select the even or odd pages:
442 <B>lp -o page-set=odd filename ENTER</B>
443 <B>lp -o page-set=even filename ENTER</B>
444 <B>lpr -o page-set=even filename ENTER</B>
447 <P>The default is to print all pages.
449 <H3>N-Up Printing</H3>
451 <P>The <CODE>-o number-up=value</CODE> option selects N-Up printing.
452 N-Up printing places multiple document pages on a single printed page.
453 CUPS supports 1-Up, 2-Up, and 4-Up formats:
456 <B>lp -o number-up=1 filename ENTER</B>
457 <B>lp -o number-up=2 filename ENTER</B>
458 <B>lp -o number-up=4 filename ENTER</B>
459 <B>lpr -o number-up=4 filename ENTER</B>
462 <P>The default format is 1-Up.
464 <H3>Setting the Brightness</H3>
466 <P>You can control the overall brightness of the printed output using the
467 <CODE>-o brightness=percent</CODE> option:
470 <B>lp -o brightness=120 filename ENTER</B>
471 <B>lpr -o brightness=120 filename ENTER</B>
474 <P>Values greater than 100 will lighten the print, while values less than
477 <H3>Setting the Gamma Correction</H3>
479 <P>You can control the overall gamma correction of the printed output
480 using the <CODE>-o gamma=value</CODE> option:
483 <B>lp -o gamma=1700 filename ENTER</B>
484 <B>lpr -o gamma=1700 filename ENTER</B>
487 <P>Values greater than 1000 will lighten the print, while values less
488 than 1000 will darken it. The default gamma is 1000.
490 <H2>Text Options</H2>
492 <P>The following options apply when printing text files.
494 <H3>Setting the Number of Characters Per Inch</H3>
496 <P>The <CODE>-o cpi=value</CODE> option sets the number of characters per inch:
499 <B>lp -o cpi=10 filename ENTER</B>
500 <B>lp -o cpi=12 filename ENTER</B>
501 <B>lpr -o cpi=17 filename ENTER</B>
504 <P>The default characters per inch is 10.
506 <H3>Setting the Number of Lines Per Inch</H3>
508 <P>The <CODE>-o lpi=value</CODE> option sets the number of lines per inch:
511 <B>lp -o lpi=6 filename ENTER</B>
512 <B>lpr -o lpi=8 filename ENTER</B>
515 <P>The default lines per inch is 6.
517 <H3>Setting the Number of Columns</H3>
519 <P>The <CODE>-o columns=value</CODE> option sets the number of text columns:
522 <B>lp -o columns=2 filename ENTER</B>
523 <B>lpr -o columns=3 filename ENTER</B>
526 <P>The default number of columns is 1.
528 <H3>Setting the Page Margins</H3>
530 <P>Normally the page margins are set to the hard limits of the printer.
531 Use the <CODE>-o page-left=value</CODE>, <CODE>-o
532 page-right=value</CODE>, <CODE>-o page-top=value</CODE>, and <CODE>-o
533 page-bottom=value</CODE> options to adjust the page margins:
536 <B>lp -o page-left=<I>value</I> filename ENTER</B>
537 <B>lp -o page-right=<I>value</I> filename ENTER</B>
538 <B>lp -o page-top=<I>value</I> filename ENTER</B>
539 <B>lp -o page-bottom=<I>value</I> filename ENTER</B>
540 <B>lpr -o page-bottom=<I>value</I> filename ENTER</B>
543 <P>The <CODE>value</CODE> argument is the margin in points; each point is 1/72 inch
546 <H3>Pretty Printing</H3>
548 <P>The <CODE>-o prettyprint</CODE> option puts a header at the top of each page with the
549 page number, job title (usually the filename), and the date. Also, C and C++
550 keywords are highlighted, and comment lines are italicized:
553 <B>lp -o prettyprint filename ENTER</B>
554 <B>lpr -o prettyprint filename ENTER</B>
557 <H2>Image Options</H2>
559 <P>The following options apply when printing image files.
561 <H3>Positioning the Image</H3>
563 <P>The <CODE>-o position=name</CODE> option specifies the position of the
568 <LI><CODE>center</CODE> - Center the image on the page (default)
570 <LI><CODE>top</CODE> - Print the image centered at the top of the page
572 <LI><CODE>left</CODE> - Print the image centered on the left of page
574 <LI><CODE>right</CODE> - Print the image centered on the right of the page
576 <LI><CODE>top-left</CODE> - Print the image at the top left corner of
579 <LI><CODE>top-right</CODE> - Print the image at the top right corner of
582 <LI><CODE>bottom</CODE> - Print the image centered at the bottom of
585 <LI><CODE>bottom-left</CODE> - Print the image at the bottom left
588 <LI><CODE>bottom-right</CODE> - Print the image at the bottom right
593 <H3>Scaling the Image</H3>
595 <P>The <CODE>-o scaling=percent</CODE> and <CODE>-o ppi=value</CODE>
596 options change the size of a printed image:
599 <B>lp -o scaling=<I>percent</I> filename ENTER</B>
600 <B>lp -o ppi=<I>value</I> filename ENTER</B>
601 <B>lpr -o ppi=<I>value</I> filename ENTER</B>
604 <P>The <CODE>percent</CODE> value is a number from 1 to 800
605 specifying the size in relation to the page (<I>not</I> the image.) A
606 scaling of 100 percent will fill the page as completely as the image
607 aspect ratio allows. A scaling of 200 percent will print on up to 4
610 <P>The ppi <CODE>value</CODE> is a number from 1 to 1200 specifying the
611 resolution of the image in pixels per inch. An image that is 3000x2400
612 pixels will print 10x8 inches at 300 pixels per inch, for example. If
613 the specified resolution makes the image larger than the page, multiple
614 pages will be printed to satisfy the request.
616 <H3>Adjusting the Hue (Tint) of an Image</H3>
618 <P>The <CODE>-o hue=value</CODE> option will adjust the hue of the
619 printed image, much like the tint control on your television:
622 <B>lp -o hue=<I>value</I> filename ENTER</B>
623 <B>lpr -o hue=<I>value</I> filename ENTER</B>
627 <P>The <CODE>value</CODE> argument is a number from -360 to 360 and represents the
628 color hue rotation. The following table summarizes the change you'll see with
631 <CENTER><TABLE WIDTH="50%" BORDER="1">
640 <TD>Yellow-orange</TD>
644 <TD>Yellow-green</TD>
650 <TD>Green-yellow</TD>
665 <TD>Light-navy-blue</TD>
669 <P>The default hue adjustment is 0.
671 <H3>Adjusting the Saturation (Color) of an Image</H3>
673 <P>The <CODE>-o saturation=percent</CODE> option adjusts the saturation
674 of the colors in an image, much like the color knob on your television:
677 <B>lp -o saturation=<I>percent</I> filename ENTER</B>
678 <B>lpr -o saturation=<I>percent</I> filename ENTER</B>
681 <P>The <CODE>percent</CODE> argument specifies the color saturation
682 from 0 to 200. A color saturation of 0 produces a black-and-white
683 print, while a value of 200 will make the colors extremely intense.
685 <P>The default saturation is 100.
688 <H2>HP-GL/2 Options</H2>
690 <P>The following options apply to HP-GL/2 files.
692 <H3>Printing in Black</H3>
694 <P>The <CODE>-o blackplot</CODE> option specifies that all pens should
698 <B>lp -o blackplot filename ENTER</B>
699 <B>lpr -o blackplot filename ENTER</B>
702 <P>The default is to use the colors defined in the plot file or the
703 standard pen colors defined in the HP-GL/2 reference manual from
706 <H3>Fitting the Plot on the Page</H3>
708 <P>The <CODE>-o fitplot</CODE> option specifies that the plot should be
709 scaled to fit on the page:
712 <B>lp -o fitplot filename ENTER</B>
713 <B>lpr -o fitplot filename ENTER</B>
716 <P>The default is to use the absolute distances specified in the plot
719 <CENTER><TABLE WIDTH="80%" CELLPADDING="5" BORDER="1" BGCOLOR="#cccccc">
724 <P>This feature depends upon an accurate plot size (<CODE>PS</CODE>)
725 command in the HP-GL/2 file. If no plot size is given in the file
726 than the HP-GL/2 filter assumes the plot is ANSI E size.
731 <H3>Setting the Default Pen Width</H3>
733 <P>The <CODE>-o penwidth=value</CODE> option specifies the default pen
734 width for HP-GL/2 files:
737 <B>lp -o penwidth=<I>value</I> filename ENTER</B>
738 <B>lpr -o penwidth=<I>value</I> filename ENTER</B>
741 <P>The pen width <CODE>value</CODE> specifies the pen width in micrometers.
742 The default value of 1000 produces lines that are 1 millimeter in width.
743 Specifying a pen width of 0 produces lines that are exactly 1 pixel wide.
745 <CENTER><TABLE WIDTH="80%" CELLPADDING="5" BORDER="1" BGCOLOR="#cccccc">
750 <P>This option is ignored when the pen widths are set in the
756 <H2>Raw or Unfiltered Output</H2>
758 <P>The <CODE>-o raw</CODE> option allows you to send files directly to
759 a printer without filtering. This is sometimes required when printing
760 from applications that provide their own "printer drivers" for your
764 <B>lp -o raw filename ENTER</B>
765 <B>lpr -o raw filename ENTER</B>
768 <P>The <CODE>-l</CODE> option can also be used with the
769 <CODE>lpr</CODE> command to send files directly to a printer:
772 <B>lpr -l filename ENTER</B>
776 <H1 ALIGN="RIGHT"><A NAME="SAVING_OPTIONS">4 - Saving Printer Options and Defaults</A></H1>
778 <P>This chapter describes how to save printer options for your printer and
779 set your own default printer.
781 <H2>Printer Options</H2>
783 <P>Each printer supports a large number of options, which you learned about
784 in <A HREF="#STANDARD_OPTIONS">Chapter 3, "Standard Printer Options"</A>.
785 Rather than specifying these options each time you print a file, CUPS allows
786 you to save them as "default" options for the printer.
788 <P>The <CODE>lpoptions(1)</CODE> command saves the options for your printers.
789 Like the <CODE>lp</CODE> and <CODE>lpr</CODE> commands, it accepts printer
790 options using the <CODE>-o</CODE> argument:
793 <B>lpoptions -o media=A4 -o sides=two-sided-long-edge ENTER</B>
794 <B>lpoptions -o media=Legal -o scaling=100 ENTER</B>
797 <P>Once saved, any <CODE>lp</CODE> or <CODE>lpr</CODE> command will
798 use them when you print.
800 <H2>Setting Options for a Specific Printer</H2>
802 <P>The previous example shows how to set the options for the default
803 printer. The <CODE>-p printer</CODE> option specifies the options are
807 <B>lpoptions -p laserjet -o media=A4 -o sides=two-sided-long-edge ENTER</B>
808 <B>lpoptions -p deskjet -o media=Legal -o scaling=100 ENTER</B>
811 <H2>Viewing the Current Defaults</H2>
813 <P>The <CODE>lpoptions</CODE> command can also be used to show the current
814 options by not specifying any new options on the command-line:
817 <B>lpoptions ENTER</B>
818 media=A4 sides=two-sided-long-edge
819 <B>lpoptions -p deskjet ENTER</B>
820 media=Legal scaling=100
823 <H2>Setting the Default Printer</H2>
825 <P>The administrator normally will set a system-wide default printer
826 that is normally used as the default printer by everyone. Use the
827 <CODE>-d printer</CODE> option to set your own default printer:
830 <B>lpoptions -d deskjet ENTER</B>
833 <P>The printer can be local (<CODE>deskjet</CODE>) or remote
834 (<CODE>deskjet@server</CODE>).
836 <H2>Printer Instances</H2>
838 <P>Besides setting options for each print queue, CUPS supports
839 <I>printer instances</I> which allow you to define several different
840 sets of options for each printer. You specify a printer instance using
841 the slash (<CODE>/</CODE>) character:
844 <B>lpoptions -p laserjet/duplex -o sides=two-sided-long-edge ENTER</B>
845 <B>lpoptions -p laserjet/legal -o media=Legal ENTER</B>
848 <P>The <CODE>lp</CODE> and </CODE>lpr</CODE> commands also understand
852 <B>lp -d laserjet/duplex filename ENTER</B>
853 <B>lpr -P laserjet/legal filename ENTER</B>
856 <H2>Removing Instances</H2>
858 <P>Use the <CODE>-x printer/instance</CODE> option to remove a printer
859 instance that you no longer need:
862 <B>lpoptions -x laserjet ENTER</B>
863 <B>lpoptions -x laserjet/duplex ENTER</B>
864 <B>lpoptions -x laserjet/legal ENTER</B>
867 <P>The <CODE>-x</CODE> option only removes the default options for that
868 printer and instance; the original print queue will remain until deleted
869 with the <CODE>lpadmin(8)</CODE> command by the administrator.
872 <H1 ALIGN="RIGHT"><A NAME="LICENSE">A - Software License
875 <EMBED SRC="../LICENSE.html">