]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - man/lpoptions.man.in
Deprecate printer drivers (Issue #5270)
[thirdparty/cups.git] / man / lpoptions.man.in
... / ...
CommitLineData
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
11lpoptions \- 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.
66If no printer is specified using the \fI\-p\fR option, the default printer is used as described in
67.BR lp (1).
68.LP
69If 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
71Options set with the \fBlpoptions\fR command are used by the
72.BR lp (1)
73and
74.BR lpr (1)
75commands when submitting jobs.
76.LP
77When 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.
78Otherwise, 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
83Enables encryption when communicating with the CUPS server.
84.TP 5
85\fB\-U \fIusername\fR
86Uses an alternate username.
87.TP 5
88\fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
89Sets the user default printer to \fIdestination\fR.
90If \fIinstance\fR is supplied then that particular instance is used.
91This option overrides the system default printer for the current user.
92.TP 5
93\fB\-h \fIserver\fR[\fB:\fIport\fR]
94Uses an alternate server.
95.TP 5
96.B \-l
97Lists the printer specific options and their current settings.
98.TP 5
99\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
100Specifies a new option for the named destination.
101.TP 5
102\fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
103Sets the destination and instance, if specified, for any options that follow.
104If the named instance does not exist then it is created.
105Destinations can only be created using the
106.BR lpadmin (8)
107program.
108.TP 5
109\fB\-r \fIoption\fR
110Removes the specified option from the named destination.
111.TP 5
112\fB\-x \fIdestination\fR[\fB/\fIinstance\fR]
113Removes the options for the named destination and instance, if specified.
114If the named instance does not exist then this does nothing.
115Destinations can only be removed using the
116.BR lpadmin (8)
117command.
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
123The \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),
130CUPS Online Help (http://localhost:631/help)
131.SH COPYRIGHT
132Copyright \[co] 2007-2018 by Apple Inc.