]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | .\" |
6e12033b | 2 | .\" lpoptions man page for CUPS. |
ef416fc2 | 3 | .\" |
6e12033b MS |
4 | .\" Copyright 2007-2014 by Apple Inc. |
5 | .\" Copyright 1997-2006 by Easy Software Products. | |
ef416fc2 | 6 | .\" |
e3101897 | 7 | .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ef416fc2 | 8 | .\" |
6e12033b | 9 | .TH lpoptions 1 "CUPS" "12 June 2014" "Apple Inc." |
ef416fc2 | 10 | .SH NAME |
11 | lpoptions \- display or set printer options and defaults | |
12 | .SH SYNOPSIS | |
13 | .B lpoptions | |
6e12033b MS |
14 | [ |
15 | .B \-E | |
16 | ] [ | |
17 | .B \-U | |
bd7854cb | 18 | .I username |
6e12033b MS |
19 | ] [ |
20 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
21 | ] | |
22 | \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] | |
23 | [ | |
24 | .B \-l | |
ef416fc2 | 25 | ] |
26 | .br | |
27 | .B lpoptions | |
6e12033b MS |
28 | [ |
29 | .B \-E | |
30 | ] [ | |
31 | .B \-U | |
bd7854cb | 32 | .I username |
6e12033b MS |
33 | ] [ |
34 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
35 | ] [ | |
36 | \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] | |
37 | ] | |
38 | \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ... | |
ef416fc2 | 39 | .br |
40 | .B lpoptions | |
6e12033b MS |
41 | [ |
42 | .B \-E | |
43 | ] [ | |
44 | .B \-U | |
bd7854cb | 45 | .I username |
6e12033b MS |
46 | ] [ |
47 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
48 | ] [ | |
49 | \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] | |
50 | ] | |
51 | .B \-r | |
ef416fc2 | 52 | .I option |
53 | .br | |
54 | .B lpoptions | |
6e12033b MS |
55 | [ |
56 | .B \-E | |
57 | ] [ | |
58 | .B \-U | |
bd7854cb | 59 | .I username |
6e12033b MS |
60 | ] [ |
61 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
62 | ] | |
63 | \fB\-x \fIdestination\fR[\fB/\fIinstance\fR] | |
ef416fc2 | 64 | .SH DESCRIPTION |
6e12033b MS |
65 | \fBlpoptions\fR displays or sets printer options and defaults. |
66 | If no printer is specified using the \fI\-p\fR option, the default printer is used as described in | |
67 | .BR lp (1). | |
68 | .LP | |
69 | If no \fI\-l\fR, \fI\-o\fR, or \fI\-r\fR options are specified, the current options are reported on the standard output. | |
70 | .LP | |
71 | Options set with the \fBlpoptions\fR command are used by the | |
72 | .BR lp (1) | |
73 | and | |
74 | .BR lpr (1) | |
75 | commands when submitting jobs. | |
76 | .LP | |
77 | When run by the root user, \fBlpoptions\fR gets and sets default options and instances for all users in the \fI/etc/cups/lpoptions\fR file. | |
78 | Otherwise, the per-user defaults are managed in the \fI~/.cups/lpoptions\fR file. | |
79 | .SH OPTIONS | |
80 | \fBlpoptions\fR supports the following options: | |
ef416fc2 | 81 | .TP 5 |
6e12033b | 82 | .B \-E |
ef416fc2 | 83 | Enables encryption when communicating with the CUPS server. |
84 | .TP 5 | |
6e12033b | 85 | \fB\-U \fIusername\fR |
bd7854cb | 86 | Uses an alternate username. |
87 | .TP 5 | |
6e12033b MS |
88 | \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] |
89 | Sets the user default printer to \fIdestination\fR. | |
90 | If \fIinstance\fR is supplied then that particular instance is used. | |
91 | This option overrides the system default printer for the current user. | |
ef416fc2 | 92 | .TP 5 |
6e12033b | 93 | \fB\-h \fIserver\fR[\fB:\fIport\fR] |
bd7854cb | 94 | Uses an alternate server. |
ef416fc2 | 95 | .TP 5 |
6e12033b | 96 | .B \-l |
ef416fc2 | 97 | Lists the printer specific options and their current settings. |
98 | .TP 5 | |
6e12033b | 99 | \fB\-o \fIoption\fR[\fB=\fIvalue\fR] |
ef416fc2 | 100 | Specifies a new option for the named destination. |
101 | .TP 5 | |
6e12033b MS |
102 | \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] |
103 | Sets the destination and instance, if specified, for any options that follow. | |
104 | If the named instance does not exist then it is created. | |
105 | Destinations can only be created using the | |
106 | .BR lpadmin (8) | |
107 | program. | |
ef416fc2 | 108 | .TP 5 |
6e12033b MS |
109 | \fB\-r \fIoption\fR |
110 | Removes the specified option from the named destination. | |
ef416fc2 | 111 | .TP 5 |
6e12033b MS |
112 | \fB\-x \fIdestination\fR[\fB/\fIinstance\fR] |
113 | Removes the options for the named destination and instance, if specified. | |
114 | If the named instance does not exist then this does nothing. | |
115 | Destinations can only be removed using the | |
116 | .BR lpadmin (8) | |
117 | command. | |
ef416fc2 | 118 | .SH FILES |
6e12033b | 119 | \fI~/.cups/lpoptions\fR - user defaults and instances created by non-root users. |
ef416fc2 | 120 | .br |
6e12033b MS |
121 | \fI/etc/cups/lpoptions\fR - system-wide defaults and instances created by the root user. |
122 | .SH CONFORMING TO | |
123 | The \fBlpoptions\fR command is unique to CUPS. | |
ef416fc2 | 124 | .SH SEE ALSO |
6e12033b MS |
125 | .BR cancel (1), |
126 | .BR lp (1), | |
127 | .BR lpadmin (8), | |
128 | .BR lpr (1), | |
129 | .BR lprm (1), | |
130 | CUPS Online Help (http://localhost:631/help) | |
ef416fc2 | 131 | .SH COPYRIGHT |
bd5a2f28 | 132 | Copyright \[co] 2007-2017 by Apple Inc. |