]>
Commit | Line | Data |
---|---|---|
1 | .\" | |
2 | .\" lpoptions man page for CUPS. | |
3 | .\" | |
4 | .\" Copyright 2007-2014 by Apple Inc. | |
5 | .\" Copyright 1997-2006 by Easy Software Products. | |
6 | .\" | |
7 | .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information. | |
8 | .\" | |
9 | .TH lpoptions 1 "CUPS" "12 June 2014" "Apple Inc." | |
10 | .SH NAME | |
11 | lpoptions \- display or set printer options and defaults | |
12 | .SH SYNOPSIS | |
13 | .B lpoptions | |
14 | [ | |
15 | .B \-E | |
16 | ] [ | |
17 | .B \-U | |
18 | .I username | |
19 | ] [ | |
20 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
21 | ] | |
22 | \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] | |
23 | [ | |
24 | .B \-l | |
25 | ] | |
26 | .br | |
27 | .B lpoptions | |
28 | [ | |
29 | .B \-E | |
30 | ] [ | |
31 | .B \-U | |
32 | .I username | |
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] ... | |
39 | .br | |
40 | .B lpoptions | |
41 | [ | |
42 | .B \-E | |
43 | ] [ | |
44 | .B \-U | |
45 | .I username | |
46 | ] [ | |
47 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
48 | ] [ | |
49 | \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] | |
50 | ] | |
51 | .B \-r | |
52 | .I option | |
53 | .br | |
54 | .B lpoptions | |
55 | [ | |
56 | .B \-E | |
57 | ] [ | |
58 | .B \-U | |
59 | .I username | |
60 | ] [ | |
61 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
62 | ] | |
63 | \fB\-x \fIdestination\fR[\fB/\fIinstance\fR] | |
64 | .SH DESCRIPTION | |
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: | |
81 | .TP 5 | |
82 | .B \-E | |
83 | Enables encryption when communicating with the CUPS server. | |
84 | .TP 5 | |
85 | \fB\-U \fIusername\fR | |
86 | Uses an alternate username. | |
87 | .TP 5 | |
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. | |
92 | .TP 5 | |
93 | \fB\-h \fIserver\fR[\fB:\fIport\fR] | |
94 | Uses an alternate server. | |
95 | .TP 5 | |
96 | .B \-l | |
97 | Lists the printer specific options and their current settings. | |
98 | .TP 5 | |
99 | \fB\-o \fIoption\fR[\fB=\fIvalue\fR] | |
100 | Specifies a new option for the named destination. | |
101 | .TP 5 | |
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. | |
108 | .TP 5 | |
109 | \fB\-r \fIoption\fR | |
110 | Removes the specified option from the named destination. | |
111 | .TP 5 | |
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. | |
118 | .SH FILES | |
119 | \fI~/.cups/lpoptions\fR - user defaults and instances created by non-root users. | |
120 | .br | |
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. | |
124 | .SH SEE ALSO | |
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) | |
131 | .SH COPYRIGHT | |
132 | Copyright \[co] 2007-2018 by Apple Inc. |